+ Reply to Thread
Results 1 to 3 of 3

Find Cell in sheet and insert copy to another

  1. #1
    Registered User
    Join Date
    03-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    25

    Find Cell in sheet and insert copy to another

    Hi: I'm trying to find a cell in one worksheet then select entire row, copy, select another sheet, find the last row and insert paste the row. My code performs the copy/paste but then returns error 1004 - ...copy and paste area are not same size/shape.

    CODE:
    Worksheets("Reg_Scores").Activate
    'Range("B3").Select
    For PlayerRow = 1 To 50
    Set PlayerCell = Range("B3").Offset(PlayerRow - 1, 0)
    PlayerCell.Select
    If PlayerCell.Text = cmbPlayer.Text Then
    PlayerCell.Activate
    ActiveCell.EntireRow.Copy
    Worksheets("Sub_Scores").Activate
    Range("B3").End(xlDown).Select
    ActiveCell.EntireRow.Insert
    ActiveSheet.Paste
    Application.CutCopyMode = False
    Exit For
    End If
    Next PlayerRow
    End Sub
    /CODE:

    ANy help is appreciated...

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Find Cell in sheet and insert copy to another

    Hi hawk, you forgot code tags
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    03-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Find Cell in sheet and insert copy to another

    Sorry about that. Here it is in the proper format:
    Please Login or Register  to view this content.

+ 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