+ Reply to Thread
Results 1 to 5 of 5

Copy down Formulas from top line of range to last

  1. #1
    Registered User
    Join Date
    03-21-2018
    Location
    London, England
    MS-Off Ver
    Latest Version
    Posts
    2

    Copy down Formulas from top line of range to last

    Hi,

    I have a range of data set and when I insert a new line this range then includes the line. I then would like to use a macro to say once that line has been inserted copy down the formula from the first row of the range all the way down the range to the last row within the range so that the formula all work correctly as if the cells had been copied down via dragging them.

    Any help would be great

    Many thanks

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Copy down Formulas from top line of range to last

    Hi, Ralphie2396, welcome to Excel Forum! A small sample workbook would help us to solve your problem quickly and accurately. Please remove any personal or proprietary information. Try to use your original layout so our solutions fit your workbook, and highlight the formula cells you need copied.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,541

    Re: Copy down Formulas from top line of range to last

    Change the 1 in "End(xlUp).Row, 1))" to the number of columns in the range
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-21-2018
    Location
    London, England
    MS-Off Ver
    Latest Version
    Posts
    2
    Quote Originally Posted by leelnich View Post
    Hi, Ralphie2396, welcome to Excel Forum! A small sample workbook would help us to solve your problem quickly and accurately. Please remove any personal or proprietary information. Try to use your original layout so our solutions fit your workbook, and highlight the formula cells you need copied.

    To attach a workbook:
    Click Edit Post (or just start a new reply.)
    Click Go Advanced
    Scroll down to Manage Attachments and click.
    Now click Browse, find your file, then click Upload. Simple!
    Hi,
    See the attached spreadsheet where a new line has been inserted therefore the range (Test) is cells E7:S9, I would like to copy the formulas down from Row 7 within this range down to the bottom of this range with a macro. Assuming this range will increase everytime a new line is inserted at the bottom of the range. I currently have a macro to insert the line above the line with Total in which works fine i just need the step above after.

    Kind regards.
    Attached Files Attached Files
    Last edited by Ralphie2396; 03-22-2018 at 07:56 AM.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,541

    Re: Copy down Formulas from top line of range to last

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] copy formulas with a line inbetween
    By xi603 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-18-2017, 05:28 PM
  2. Copy Range of Formulas to a Variable Range of Cells
    By xace in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-07-2015, 10:28 PM
  3. [SOLVED] How to copy a range (including any formulas in the range) into an array?
    By jimmalk in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-28-2012, 01:51 AM
  4. vba - copy non contiguos cells to a range in line
    By Osvaldo Palmeiro in forum Excel General
    Replies: 2
    Last Post: 12-20-2011, 07:44 PM
  5. Add line and copy formulas doesn't work with a macro
    By Jehan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2008, 06:39 PM
  6. How do I copy formulas but using the same range each time I copy
    By Laffin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2006, 11:17 AM
  7. copy formulas from a contiguous range to a safe place and copy them back later
    By Lucas Budlong in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2006, 04:35 PM

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