+ Reply to Thread
Results 1 to 4 of 4

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

Hybrid View

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

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

    Try this.
    Sub CopyBlock()
    Dim rngSrc As Range
    
        Set rngSrc = Range("A2", Range("G" & Rows.Count).End(xlUp))
        
        rngSrc.copy rngSrc.Offset(rngSrc.Rows.Count).Resize(rngSrc.Rows.Count * Range("L1").Value)
        
    End Sub
    If posting code please use code tags, see here.

  2. #2
    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