+ Reply to Thread
Results 1 to 7 of 7

AutoFill Certain Columns When a Row is created

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    6

    AutoFill Certain Columns When a Row is created

    Hello!

    Im new to vba and trying to get a grasp on things but im still experiancing lots of problems.

    Attached is a version of a Fixed asset ledger i am building for my company. In the userforms section on VBA their is a userform called AddAsset. Contained within this forms VBA under the Sub Okay_Click() is my attempt at making VBA to automatically autofill the cells from a few selected columns R, S, T, W, X, Y when the okay button is hit. (This is just my problem but the other columns are filled with other information pretaining to the specific asset)


    Attached is a version of my spreadsheet. Thanks in advance for helping me out on my work! Have a wonderful day.
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: AutoFill Certain Columns When a Row is created

    Mr.Steel,

    Give the following a try for your okay button code in the AddAsset userform:
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  3. #3
    Registered User
    Join Date
    06-27-2011
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: AutoFill Certain Columns When a Row is created

    Thanks for the timely response tiger avatar!

    Unfortunetly that didn't solve my problem as it didnt copy the exact formulas contained in the cells above the new entry, the cells returned as "0$" instead of containing a formula which performs calculations. Are their any other ideas you can provide to help me with my problem?

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: AutoFill Certain Columns When a Row is created

    Mr.Steel,

    Updated code for cell formulas instead of just values:
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  5. #5
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: AutoFill Certain Columns When a Row is created

    Oh, I just realized I made a mistake, fixing now, post again in a sec

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: AutoFill Certain Columns When a Row is created

    Mr.Steel,

    Alright, this should fix it, sorry for the confusion:
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar

  7. #7
    Registered User
    Join Date
    06-27-2011
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: AutoFill Certain Columns When a Row is created

    That Worked perfectly. Thank you very much for your help. XD

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1