Results 1 to 2 of 2

How to paste data from one sheet onto another (noob question, I know, but plz help!!)

Threaded View

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Montana
    MS-Off Ver
    Excel 1997 and Excel 2010
    Posts
    12

    Exclamation How to paste data from one sheet onto another (noob question, I know, but plz help!!)

    Hello expert VBAers,
    For the life of me I'm not sure why this isn't working here's what I've done so far. If I delete the green highlighted part it will work just fine, so I'm not sure what's up.

    VB:
    Private Sub CommandButton5_Click()
        r1 = Sheets("Data Entry and Look Up").Range("A2").Value
        Range("B47:AD47").Select
        Selection.Copy
        Sheets("Jubilee 2012").Select
        Range("B" & r1 & ":AD" & r1).Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Sheets("Data Entry and Look Up").Select
        Application.CutCopyMode = False
    End Sub
    
    I've also tried this:
    
    VB:
    Private Sub CommandButton5_Click()
        r1 = Sheets("Data Entry and Look Up").Range("A2").Value
        Range("B47:AD47").Select
        Selection.Copy
        Sheets("Jubilee 2012").Range("B" & r1 & ":AD" & r1).Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Sheets("Data Entry and Look Up").Select
        Application.CutCopyMode = False
    End Sub

    I keep getting this message when I run the macro "Select method of range class failed"

    None of them will work, and I kind of want to break down in tears because I've been trying to figure this out for so long.

    please help!!!

    thanks so much
    Last edited by FDibbins; 10-23-2012 at 11:16 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