Results 1 to 3 of 3

VBA to copy, paste and add to existing data

Threaded View

  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.

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