![]() |
|
|
|
#1
|
||||
|
||||
|
You should be able to find code online to construct a valid and unique bookmark name. An example of such a macro can be found here http://www.vbaexpress.com/forum/show...-VBA-Bookmarks
Note that Greg's code is not bulletproof but it is a good case study to get you over the next hurdle. Shortcomings of that code, which may or may not matter to you are: - Doesn't verify whether the bookmark name already exists - Doesn't truncate string to the maximum length allowed by bookmarks
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
While doing further research and testing, I discovered this script does not caputre my Heading 2 TOC or Heding 3 TOC styles. They are the same as Heading 2 & 3 respectively but are used when the title must appear in the Table of Contents. Also, I'm not liking the bookmark tagging concept. Your script finds the heading to add the bookmark so why can it access the cross-reference function like you would normally do manually?
|
|
#3
|
|||
|
|||
|
Your macro run great. Is there anyway to increment the bookmark for subsequent continuation headings? If I add more than one, when I update the fields, all cross references refer to the last bookmark.
|
|
#4
|
|||
|
|||
|
Is there any way to increment the bookmark? The current macro only uses one bookmark so if there are multiple continuation headings, when the fields are updated, all the cross-referencing changes to the last entry.
|
|
#5
|
|||
|
|||
|
Incorrect posting of replay and since I can't find a way to delete it, Iv'e changed the test. Please disregard.
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Capturing numbered headings
|
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 |
Headings and Number Outline Problem (MS Office 2008)
|
triodia | Word | 2 | 05-07-2012 02:03 AM |
numbered headings
|
Caroline | Word | 5 | 03-14-2011 09:09 AM |
| XML marking of Auto-numbered Headings | crose | Word | 0 | 12-17-2009 09:55 PM |