Macro for Table of Contents


Joined
Aug 22, 2018
Messages
2
Reaction score
0
I'm trying to create a macro that will let me make changes to the Table of Contents without changing the headers in the document itself. When I do a global change manually I can highlight the TOC and make the changes to only the TOC, but when I tried to do it with a macro, it changed the whole document.
 

macropod

Microsoft MVP
Joined
Mar 2, 2012
Messages
429
Reaction score
37
Without seeing your code, it's impossible to say what the issue is. That said, editing a Table of Contents is generally futile, as anything that causes Word to refresh it (e.g. printing the document) will wipe out the edits.
 
Joined
Aug 22, 2018
Messages
2
Reaction score
0
Thank you. That's very helpful. I'm new to macros, so I thought it might be me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top