Results 1 to 8 of 8

VBA Code Problem (Excel 2010):Runtime error 424

Threaded View

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Arrow VBA Code Problem (Excel 2010):Runtime error 424

    Tried to copy a worksheet and assign a variable to this copy at the same time as follows,

    Sub Macro1()
        Dim pSheet As Worksheet
        Set pSheet = Sheets("MySheet").Copy(After:=Sheets(Sheets.Count))
    End Sub
    but I got error message as follow,

    Run-time error '424':
    Object Required

    Any help on this...
    Last edited by arlu1201; 11-27-2012 at 01:06 AM. Reason: Use code tags in future.

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.6.0 RC 1