+ Reply to Thread
Results 1 to 2 of 2

Select Method of worksheet class failed Error - VBA

  1. #1
    Registered User
    Join Date
    11-28-2013
    Location
    PH
    MS-Off Ver
    Excel 2010
    Posts
    16

    Select Method of worksheet class failed Error - VBA

    Hi,

    I'm encountering Select Method of worksheet class failed Error while running below vba code:

    It failed on Sheets(strSheetName).Select

    Please Login or Register  to view this content.


    I need to select sheets T0 – T9 & PN.

    (Please see attached file)

    The following sheets are not visible & don’t need to select:

    Sheet 12 (tmpscrapsheet)
    Sheet 13 (Ls_XLB_WorkbookFile)
    Sheet 14 (Ls_AgXLB_WorkbookFile)

    Hope you can help me.


    Thanks!

    Jeff
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Select Method of worksheet class failed Error - VBA

    Hi,

    For starters, you have uploaded a Word document, not an Excel workbook.

    Secondly, what is the value of strSheetName when the code fails, as you haven't excluded tmpscrapsheet from the If...Then conditional statement previously.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Run time error 1004 select method of worksheet class failed
    By ayvee0 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2013, 10:12 AM
  2. Select Method of Range Class failed error 400
    By kmknowles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2012, 05:26 PM
  3. [SOLVED] Select method of range class failed error
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2012, 10:13 AM
  4. select method of range class failed error
    By johndough185 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2007, 08:36 AM
  5. [SOLVED] Error Message "Select method of worksheet class failed"
    By philc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2005, 04:06 AM

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