Results 1 to 4 of 4

Thread: Need help creating a Macro to update multiple TOCs

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    3

    Need help creating a Macro to update multiple TOCs

    I have a word doc that has multiple TOCs. I need a macro that will update all TOCs at once, page numbers and all.
    I know this can be done, but I have little to no knowledge of writing macros to do this. Can anyone help me out?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need help creating a Macro to update multiple TOCs

    Welcome to the forums.

    If you know how to do it manually, start recoding a maco, perform the task, end the macro recording, and there is the code you will need to do it automatically.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    3

    Re: Need help creating a Macro to update multiple TOCs

    Thanks for the advice, but when I tried it, this was the error I got:

    The current document does not contain a table of contents field that can be updated automatically. To insert one, click the Table of Contents button on the References tab. If you filled out a table manually, youu must update it manually.

    This made me realize that I couldn't record this macro the easy way. I figured that I would have to "write" it out.

    Have any other ideas?

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2009
    Posts
    3

    Re: Need help creating a Macro to update multiple TOCs

    Does anyone have any answers to this?
    Last edited by AFWXGirl1979; Aug 4th, 2009 at 12:21 PM. Reason: 8

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