Results 1 to 4 of 4

Thread: Automatically Create Table Of Contents For Workbook

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2015
    Posts
    11

    Automatically Create Table Of Contents For Workbook



    If the workbook contains many sheets , a table of contents can be created to navigate easier between the sheets.
    This process can be done with macro codes.

    This macro will create a new sheet at the start of the workbook named "Workbook_Index" when workbook opened. If this sheet already exists it will remove it and will rebuild. The macro will then list the names of all the sheets in the workbook and insert a hyperlink for each one.Also,can be returned to table of contents when the "Esc" key is pressed while on any sheet.
    Attached Files Attached Files

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Automatically Create Table Of Contents For Workbook

    Sounds suspiciously like an assignment.

    What code have you got and where does it not work?

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2015
    Posts
    11

    Re: Automatically Create Table Of Contents For Workbook

    Codes are in template that I added .

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Automatically Create Table Of Contents For Workbook

    is this a question? or just an example of how to automatically create a TOC
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width