+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 Unable to .pastespecial, Error 'object required'

Hybrid View

CMSS Excel 2007 Unable to... 08-05-2010, 10:37 AM
venkat1926 Re: Excel 2007 Unable to... 08-06-2010, 06:27 AM
CMSS Re: Excel 2007 Unable to... 08-09-2010, 10:34 AM
  1. #1
    Registered User
    Join Date
    07-29-2010
    Location
    Cleveland, Ohio, US
    MS-Off Ver
    Excel 2007
    Posts
    20

    Excel 2007 Unable to .pastespecial, Error 'object required'

    I am sorry for the cross-posting. I am new to this whole forum thing, and I am going to stick with this one for this problem.

    I am running a macro that copies data in a form into two different archives. If one cell in the form contains specific data, it copies all of the information to the second archive. When I run the macro, it brings up the error message

    Run-time error '424':
    Object required

    and highlights
    .Range("A1").End(xlDown).Offset(1, 0).PasteSpecial xlPasteValues
    Here is th entire code for the macro:

        Application.DisplayAlerts = False
        Sheets("Data Collector").Unprotect Password:="c"
        Sheets("Session Archive").Unprotect Password:="c"
        Sheets("Data Collector").Range("A2:AC2").Copy
        Sheets("Session Archive").Select
        Sheets("Session Archive").Range("A1").End(xlDown).Offset(1, 0).PasteSpecial xlPasteValues
        Sheets("Calculator").Select
        If Range("H32") = "DOM" Then
            Workbooks.Open Filename:="C:\book2.xls"
            With Sheets("DOM Award Tracking").Select
            .Range("A1").End(xlDown).Offset(1, 0).PasteSpecial xlPasteValues
            .CutCopyMode = False
            .Close True
            End With
            Workbooks("C:\book1.xls).Activate
        End If
        Application.CutCopyMode = False
        Sheets("Session Archive").Protect Password:="c", _
            DrawingObjects:=True, Contents:=True, Scenarios:=True, AllowSorting:=True
        Sheets("Calculator").Select
    Last edited by CMSS; 08-09-2010 at 10:56 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Excel 2007 Unable to .pastespecial, Error 'object required'

    first guess
    there is a code
    With Sheets("DOM Award Tracking").Select
    change it to
    With Sheets("DOM Award Tracking")

  3. #3
    Registered User
    Join Date
    07-29-2010
    Location
    Cleveland, Ohio, US
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Excel 2007 Unable to .pastespecial, Error 'object required'

    If I make that change then I get the error message:

    Run-time error '1004':
    Application-defined or object-defined error

+ 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