![]() |
|
#1
|
||||
|
||||
![]() Did you copy all the code?
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#2
|
|||
|
|||
![]()
My bad. I didn't scroll down for the other two subs. Everything seems to be working. The only issue I have to figure out is how to select two alternate headings. I have at Heading 2 and a Heading 3 but also have a Heading 2 TOC and Heading 3 TOC for Table of Contents (we only want select Heading 2 or 3 to show in the TOC). The current macro does not recognize the TOC Headings. I'll play with it some more to see if I can figure it out unless you have another brilliant idea. Your help was and is greatly appreciated.
|
#3
|
|||
|
|||
![]()
I've tested the macro and there is one small glitch that I haven't been able to overcome. I have two different Heading 3 styles; one called Heading 3 and the other Heading 3 TOC. They are identical but the Heading 3 TOC was necessary to show in the Table of Contents as I don't want all Heading 3s to show in the TOC. If I run the macro after a Heading 3 TOC, it goes back and bookmarks the last Heading 3 and not the Heading 3 TOC. Is there someway to get the macro to recognize either one?
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jbvalen | Word VBA | 5 | 05-04-2017 05:03 PM |
Word Mixing Numbered Headings with Numbered List | Tess0 | Word | 11 | 07-15-2014 05:25 AM |
![]() |
triodia | Word | 2 | 05-07-2012 02:03 AM |
![]() |
Caroline | Word | 5 | 03-14-2011 09:09 AM |
XML marking of Auto-numbered Headings | crose | Word | 0 | 12-17-2009 09:55 PM |