+ Reply to Thread
Results 1 to 7 of 7

Macro to Drag Down Formula

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Macro to Drag Down Formula

    Hello,

    I am trying to automate the "Sheet2" to have the formulas dragged down depending on the rows on Column A on "Sheet1"

    For example I will be pasting work on Column A sheet 1 that might be around 300 lines. Sheet 2 formulas should be dragged down to line 300 as well with a macro.

    By drag down i mean with the formulas too.
    Attached a dummy workbook

    Would appreciate any help

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Macro to Drag Down Formula

    Book111.xlsm
    Something like this?

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: Macro to Drag Down Formula

    Yes this is the idea but its not what i need.
    The problem with this is that you manually have to input formulas on Sheet2 Column A in order for it to work. (like you have done on A15, A16 etc)

    I want those cells to be empty until i paste things on Sheet1 Column A.

    Will probably need a macro...

    Thanks

  4. #4
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Macro to Drag Down Formula

    can i ask why they cannot have the formula in them before pasting?

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: Macro to Drag Down Formula

    That was the mainly the reason i opened this thread.
    One of the reasons is the unknown number of rows that will be pasted on sheet1 (might be tens of thousands).
    Also there will be a few more worksheets with the same preference which will make the file much heavier.
    A couple more reasons..

  6. #6
    Registered User
    Join Date
    05-13-2010
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    90

    Re: Macro to Drag Down Formula

    One last try, maybe someone will notice this and help out a bit ...

  7. #7
    Forum Contributor Legend Rubber's Avatar
    Join Date
    09-21-2012
    Location
    Tillsonburg, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    392

    Re: Macro to Drag Down Formula

    i am sure that someone smarter than i could find a solution with a code that would do something like...
    if the cell A1 in Sheet1 is not empty than copy/paste info to next available line in sheet2...
    but i cant figure out how to do it...
    Sorry, i did try to help...

+ 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