+ Reply to Thread
Results 1 to 3 of 3

VBA to copy, paste and add to existing data

  1. #1
    Forum Contributor
    Join Date
    02-24-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    317

    VBA to copy, paste and add to existing data

    I have this code that copies and pastes from one part of a spreadsheet to another. I need to modify it so that it does not over-write the information where it pastes to, but rather adds the new information to the lines below the data that is already there.
    Can anyone help me with this?

    Private Sub PlaceData_Click()
    Range("A7:C23").Select
    Selection.Copy
    Range("G4").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Application.CutCopyMode = False
    Range("A7:A23,C7:C23").Select
    Range("C7").Activate
    Selection.ClearContents
    Range("A2").Select
    End Sub
    Last edited by Jim885; 06-01-2013 at 04:26 PM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: VBA to copy, paste and add to existing data

    hi Jim85, welcome to Excelforum
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-24-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    317

    Re: VBA to copy, paste and add to existing data

    Thanks.
    Works perfectly.

+ 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