+ Reply to Thread
Results 1 to 4 of 4

Macro to copy down large number of formulas

  1. #1
    Registered User
    Join Date
    04-22-2010
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro to copy down large number of formulas

    I have a relatively large spread sheet with may columns of formulas. I want to write a macro to copy down these formulas down to line 2000 filling in all the lines in between. I need to do this every time i use the sheet so i want to write a macro to do this automatically instead of having to manually drag the formulas down each time.

    I need to copy the first two lines down between columns AA an DT. I thought this would be really easy but when i try to do it all at once i get an error "selection too large". Any ideas about how to get around this.

    Thanks for your help

  2. #2
    Registered User
    Join Date
    04-06-2010
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Macro to copy down large number of formulas

    Welcome to the board. Are you just selecting the cells and dragging them down? This can be a bit tedious if there's quite a few cells so here's a trick to do this quickly.

    I will use an example of copying formulas from cells A1:F1 down to row 2000.

    1) Select Cells A1:F1
    2) In the Home Ribbon menu, select Find and Select > Go To
    3) Hold down the shift key then enter F2000 in the box that appears. Always enter the rightmost column you selcted and the desired last row.
    4) In the Home Ribbon menu, select Find and Select > Fill > Down

    All done.

    regards,
    Graham

  3. #3
    Registered User
    Join Date
    04-06-2010
    Location
    Wellington, New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Macro to copy down large number of formulas

    Forgot to add, if you still want a macro then perhaps post your existing code / upload a copy of the workbook (after removing sensitive info like any customer details)

    cheers,
    Graham

  4. #4
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Macro to copy down large number of formulas

    Here's a very small variation on ParryNZ's suggestion if you prefer keyboard shortcuts:

    1) Select Cells A1:F1
    2) Press [ctrl + c] to copy
    3) Press [F5] to bring up the Go To dialogbox.
    4) Change the "Reference" field to "A1:F2000" & press [Enter] to close the dialogbox.
    5) Press [Enter] to paste the copied range.

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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