+ Reply to Thread
Results 1 to 7 of 7

Table of Contents | How i can create it without hidden Sheets?

  1. #1
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    Question Table of Contents | How i can create it without hidden Sheets?

    Helo Experts, i need your support!

    I modified a Macro Downloaded from Web, Its allocated in a Module for my Excel File in order to Create Table of Contents. The problem is that it includes HIDDEN sheets as well as part of the list. How i can create it without the hidden ones?

    Here is the Full Module Code:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Table of Contents | How i can create it without hidden Sheets?

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 09-21-2020 at 04:37 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    Re: Table of Contents | How i can create it without hidden Sheets?

    It doesn't work, Debug error with
    Please Login or Register  to view this content.
    Any other suggestion / recommendation?

    Quote Originally Posted by mehmetcik View Post
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,428

    Re: Table of Contents | How i can create it without hidden Sheets?

    It looks like the code already handles hidden sheets if you use the const in the code to ignore hidden sheets. Did you try that?

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    Re: Table of Contents | How i can create it without hidden Sheets?

    I tried but not working, probably im using wrong code or logic.

    could you help me with it, i mean, where and how i need to place it?

    Thanks

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,428

    Re: Table of Contents | How i can create it without hidden Sheets?

    I'm guessing that you modified the code such that you removed the code to deal with hidden sheets.

    Modify the loop that builds the names of sheets to deal with.

    Please Login or Register  to view this content.
    The const still needs to be changed depending on whether hidden sheets are to be included or not.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-06-2013
    Location
    Mexico
    MS-Off Ver
    MS Office 2016
    Posts
    95

    SOLVED! Table of Contents | How i can create it without hidden Sheets?

    Works Flawless!!!

    Thanks for support, if some one needs here is the code corrected with @Andy Pope support

    Please Login or Register  to view this content.

+ 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. [SOLVED] Help with code to open hidden sheets based on contents in a cell.
    By holli in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-04-2016, 10:06 PM
  2. Replies: 4
    Last Post: 01-06-2014, 02:14 AM
  3. [SOLVED] Automatically revise Table of Contents list when worksheet is hidden
    By rbaughman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2013, 11:30 AM
  4. [SOLVED] How to Skip Certain Sheets in a Table of Contents?
    By justinprime in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-07-2012, 02:14 PM
  5. Table of Contents - drawing info from various cells on different sheets
    By aboveliquidice in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-30-2009, 04:02 PM
  6. [SOLVED] Table of Contents - Data from unhidden sheets only
    By Scott J. Hamilton in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2005, 09:05 AM

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