+ Reply to Thread
Results 1 to 6 of 6

Replicate/copy Rows based upon Another Cell

Hybrid View

  1. #1
    Registered User
    Join Date
    04-23-2007
    Posts
    24

    Replicate/copy Rows based upon Another Cell

    Hi, am hoping that this is a reaal easy quick one for you guys....

    I need a macro (can be done by using a button) where a range within a row is copied and pasted below this range. The number of copies/replicated rows need to be based upon a number that is input into another cell.

    So if A1 equal 5, then range A5:A10 is copied and pasted below this row 5 times.....

    I have played around several times and done a few searches within this forum but cannot seem to find a similar post...

    thanks in advance

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Replicates the selection? Can you give another example?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-23-2007
    Posts
    24
    Quote Originally Posted by shg View Post
    Replicates the selection? Can you give another example?
    Hi, i have attached a simple version with a few notes which should hopefully show what i mean

    Thanks again
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    My question is, how do you know which row is to be copied?

    Edit: Just guessing,
    Sub x()
        With Selection
            .EntireRow.Copy
            .Offset(1).Resize(Range("A3").Value).Insert
        End With
    End Sub
    Last edited by shg; 11-15-2008 at 12:55 PM.

  5. #5
    Registered User
    Join Date
    04-23-2007
    Posts
    24
    Quote Originally Posted by shg View Post
    My question is, how do you know which row is to be copied?
    oh sorry, it would just be a specified row.

    I am basilcally creating a daily planner and depending on how many days there are specified - that is how many row i want copied from, say the top row, which will have validated drop down menus in (with various activities)

    sorry if i wasnt (or still arent clear)

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Specified how?

+ 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