+ Reply to Thread
Results 1 to 7 of 7

Copy/Paste a row x times

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Atlanta, ga
    MS-Off Ver
    Excel 2010
    Posts
    11

    Copy/Paste a row x times

    Hi All,
    New person here and I've searched the post expecting that someone else has asked this question and received an answer, but unfortunately I couldn't find anything.
    How do I copy a row (columns A-Z) and paste it x times?
    e.g. Copy row "A2-Z2" and paste it "N2" times where N2 can equal any qty.
    this will help so much because Right now I'm doing it manually and I can have 300 rows and 1 row can need to be pasted 200 times.

    Thank you in advance
    Last edited by Choppo; 06-14-2013 at 03:52 PM.

  2. #2
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Copy/Paste a row x times

    Hi, Where do you want to paste the data?

    Thanks, Mike

  3. #3
    Registered User
    Join Date
    06-13-2013
    Location
    Atlanta, ga
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/Paste a row x times

    It can be on another sheet. I had been copying and then inserting copied cells however many times. Seems cleaner to paste it on another sheet, then that way I still have the original info on sheet 1.
    Thank you.

  4. #4
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Copy/Paste a row x times

    Hi, You can try this, not pretty but will work. It will copy sheet1 range A2:Z2 to sheet2 the 1st empty cell in col A however many times you want. If you want to copy each row on sheet 1 then you will need another loop such as script 2

    I'm not sure I follow you completely on what you really want to do but you can advise if you need more help.

    Thank You, Mike

    Please Login or Register  to view this content.
    Or

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-13-2013
    Location
    Atlanta, ga
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/Paste a row x times

    I've attached a sample of my data and the qty column list total number of rows I need pasted . Then goto to next row and so
    on and so on till the last row is complete. Thank you very much.
    Attached Files Attached Files

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Copy/Paste a row x times

    Hello Choppo,

    The macro below has been added to the attached workbook. You can run the macro by calling the Macro Dialog by pressing the keys ALT+F8. The rows are copied to Sheet2 and any previous data is cleared before the new data is added.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  7. #7
    Registered User
    Join Date
    06-13-2013
    Location
    Atlanta, ga
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Copy/Paste a row x times

    Wow! I just had my entire office at my cube watching this code run. You are freak'n awesome and I can not thank you and realniceguy5000 enough.
    I appreciate the help you both provided me. Good Shot!

+ 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