+ Reply to Thread
Results 1 to 3 of 3

Detect a worksheet is present in a workbook

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    76

    Detect a worksheet is present in a workbook

    Hello,

    I have written a few macro for my Excel template.
    But I want it to run only if the active workbook has sheet named "Table".
    May I know how to write the code properly?

    I know this sentence is wrong, please help me to correct it.
    If Activeworkbook.Sheets("Table"). Is Nothing Then

    Please Login or Register  to view this content.
    Last edited by Beginner Level; 06-06-2012 at 03:36 AM.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Detect a worksheet is present in a workbook

    Hi try this
    Please Login or Register  to view this content.
    and tell is it ok?
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Registered User
    Join Date
    01-13-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    76

    Re: Detect a worksheet is present in a workbook

    Thanks it is done!!!

+ 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