+ Reply to Thread
Results 1 to 4 of 4

Macro to copy/paste dynamic range x times into same sheet

  1. #1
    Registered User
    Join Date
    08-12-2012
    Location
    Brisbane, Queensland, Australai
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    6

    Macro to copy/paste dynamic range x times into same sheet

    Hi All,

    I am in need of a macro that will copy and paste a dynamic range of down a worksheet. The range will always have the same number of columns however the rows usually vary from 1 to 10 but sometimes much more. It just needs to copy itself and paste immediatley below on the same sheet a number of times, that being based on the value in cell L1.

    The range will always start in A2 and extend across to column G. Row 1 contains header info that does not need to be included.

    Any help with this would be much appreciated, I have a sample file of before (sheet1) and after(Sheet2) to get an idea of what I need.

    Book1.xls

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro to copy/paste dynamic range x times into same sheet

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Macro to copy/paste dynamic range x times into same sheet

    Pl see the attached file with macro "PasteNoOfTimes".
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-12-2012
    Location
    Brisbane, Queensland, Australai
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    6

    Re: Macro to copy/paste dynamic range x times into same sheet

    Thank you both Norie and kvsrinivasamurthy for your responses. Norie your code works exactly how I need! Thank you so much I was also able to apply it to a single column of data on another sheet in the same book where I need it to do the exact same thing.

+ 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