Closed Thread
Results 1 to 2 of 2

Thread: RUNTIME ERROR: 1004, Paste Special

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    7

    Exclamation RUNTIME ERROR: 1004, Paste Special

    Hi,

    I have created a task manager workbook that I now seem to have a problem with.
    This is the first VBA scripted one I have created and everything worked well until I started to get a runtime error 1004: Pastespecial...

    I have a feeling the problem lies with some code ahead of the actual pastespecial method.

    Just a note: The workbook VBA has a protect workbook function with password but I never had an issue with the pasting funtion in a protected worksheet before.

    Sub Button1_Click()
    '
    ' Button1 Macro
    '
    
      If Worksheets("Task Selector").Range("A1") = "Admin" Then
    
        Range("X11:AD11").Select
        Selection.Copy
        Sheets("Admin").Select
        Range("B3").Select
        NextRow = Range("B65536").End(xlUp).Row + 1
        Range("B" & NextRow).Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Sheets("Control Panel").Select
        
       End If
        
        End Sub

    Your help will be greatly appreciated!

  2. #2
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: RUNTIME ERROR: 1004, Paste Special

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0