+ Reply to Thread
Results 1 to 4 of 4

Macro to copy row and multiply by n times

  1. #1
    Registered User
    Join Date
    05-18-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Macro to copy row and multiply by n times

    Hi,

    I am trying to copy each row and insert the same number of rows based on column B. So Columns A to G will be copied and be mulitplied by the value in column

    E.g Row 2 will be copied and insert 19 new lines underneath creating 20 rows because column B's value is 20
    E.g Row 2 will be copied and insert 14 new lines underneath creating 15 rows because column B's value is 15

    20TH MARCH 2013.xls

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to copy row and multiply by n times

    Not sure if you want to fill in the blank rows in column A. Output in sheet2
    Attached Files Attached Files
    Last edited by AB33; 03-21-2013 at 10:53 AM.

  3. #3
    Registered User
    Join Date
    05-18-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Macro to copy row and multiply by n times

    You my friend are a genius, made my life so much easier!!

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to copy row and multiply by n times

    Mlocky,
    I have added one line to adjust the columns. Please see attached above.
    If you are happy with the solution provided, please close this thread.
    Go in to the top right hand of this page, choose "Thread Tools", then solved from the drop down menu

+ 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