+ Reply to Thread
Results 1 to 3 of 3

Easy Copy-Paste Question

Hybrid View

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Easy Copy-Paste Question

    Hi, I'm wondering if someone can help me create a simple macro that takes one range of cells (i.e. A1:C10) and pastes it (along with formulas, just a normal CTRL+V) down a certain amount of rows (i.e. Paste A1:C10 to A11:C21). Then when I run that macro again, it pastes that same data down the same amount of rows (i.e. Paste2 A11:C21 to A22:C32). Over and over so long as I keep running the macro...

    And I understand that I can not simply go back in a macro (if I run the macro too many ties) but that's ok. I can delete the data if I do.

    Thanks in advance for the help!

  2. #2
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Easy Copy-Paste Question

    Hi,

    Try this

    Sub Steffen()
              uRows = Sheets(1).UsedRange.Rows.Count
              Sheets(1).Range("A" & uRows - 9, "C" & uRows).Copy Destination:=Sheets(1).Range("A" & uRows + 1)
    End Sub
    This code is based on the assumption that the sheet doesnt hold more rows of data than the part thats getting copied, it can have as many columns as you want.
    Please take time to read the forum rules

  3. #3
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Easy Copy-Paste Question

    Thanks! That worked...

+ 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