+ Reply to Thread
Results 1 to 7 of 7

Copy Row with formulas by inserting number of rows required

  1. #1
    Forum Contributor
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    109

    Copy Row with formulas by inserting number of rows required

    Hi all,

    I have a row of cells from A13 to CB13 which I want to copy directly underneath numerous times and the amount of time would be an input in cell I2. Is there some way to achieve this with VBA?

    Thanks,

    Tony.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Copy Row with formulas by inserting number of rows required

    Hi BFlare,
    Try this :
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Contributor
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Copy Row with formulas by inserting number of rows required

    Quote Originally Posted by GC Excel View Post
    Hi BFlare,
    Try this :
    Please Login or Register  to view this content.
    Thanks, that's great.

    Is it possible to copy the row as above but in between another row. I have information from row 17 downwards when I copy the rows using the above VBA it over writes these????

    Thanks,

    Tony.

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Copy Row with formulas by inserting number of rows required

    Then, try this :
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Copy Row with formulas by inserting number of rows required

    Quote Originally Posted by GC Excel View Post
    Then, try this :
    Please Login or Register  to view this content.
    Fantastic thanks

    Also is it possible to have a range of cells auto number. For example B13 is the first line there for B13 as the number 1 in it. If I insert another 5 lines could I get B14 to auto insert number 2, B15 number 3 etc for the amount of inserted lines?

    When I insert the rows it auto saves, can I disable this so that I can use the undo button????

    Thanks,

    Tony.

  6. #6
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Copy Row with formulas by inserting number of rows required

    Also is it possible to have a range of cells auto number. For example B13 is the first line there for B13 as the number 1 in it. If I insert another 5 lines could I get B14 to auto insert number 2, B15 number 3 etc for the amount of inserted lines?
    In B13, right the following formula :
    =ROW()-12

    then run the macro

    When I insert the rows it auto saves, can I disable this so that I can use the undo button????
    When you run the macro, it does NOT saved the file.
    You can't use the undo button when you run a macro.
    You need to create a "undo" macro for that.

  7. #7
    Forum Contributor
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    109

    Re: Copy Row with formulas by inserting number of rows required

    Quote Originally Posted by GC Excel View Post
    In B13, right the following formula :
    =ROW()-12

    then run the macro


    When you run the macro, it does NOT saved the file.
    You can't use the undo button when you run a macro.
    You need to create a "undo" macro for that.
    Fantastic thanks

+ 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. Insert a number of rows based on a cell value and copy formulas on multiple worksheets
    By Charleneq40 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2012, 12:45 PM
  2. [SOLVED] Macro to calculate number sequence into rows and then copy formulas down to meet
    By agentone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 09:30 AM
  3. Inserting New Rows with Formulas
    By TimCar in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2012, 03:29 AM
  4. Inserting rows;my formulas
    By kidsnmecorp in forum Excel General
    Replies: 1
    Last Post: 11-20-2007, 08:16 PM
  5. [SOLVED] Inserting formulas etc after n rows
    By Peter in forum Excel General
    Replies: 1
    Last Post: 09-22-2005, 10:05 AM

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