Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2015, 10:11 PM
Guessed's Avatar
Guessed Guessed is offline Numbered Outline Continuation Headings Windows 7 32bit Numbered Outline Continuation Headings Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,185
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #2  
Old 03-23-2015, 01:25 AM
rdross51 rdross51 is offline Numbered Outline Continuation Headings Windows 7 32bit Numbered Outline Continuation Headings Office 2010 32bit
Advanced Beginner
Numbered Outline Continuation Headings
 
Join Date: Feb 2015
Location: Abu Dhabi
Posts: 45
rdross51 is on a distinguished road
Default

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?
Reply With Quote
  #3  
Old 01-02-2016, 10:07 PM
rdross51 rdross51 is offline Numbered Outline Continuation Headings Windows 7 32bit Numbered Outline Continuation Headings Office 2010 32bit
Advanced Beginner
Numbered Outline Continuation Headings
 
Join Date: Feb 2015
Location: Abu Dhabi
Posts: 45
rdross51 is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 01-02-2016, 10:13 PM
rdross51 rdross51 is offline Numbered Outline Continuation Headings Windows 7 32bit Numbered Outline Continuation Headings Office 2010 32bit
Advanced Beginner
Numbered Outline Continuation Headings
 
Join Date: Feb 2015
Location: Abu Dhabi
Posts: 45
rdross51 is on a distinguished road
Default Incrementing the bookmark

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.
Reply With Quote
  #5  
Old 08-19-2017, 02:33 AM
rdross51 rdross51 is offline Numbered Outline Continuation Headings Windows 7 32bit Numbered Outline Continuation Headings Office 2010 32bit
Advanced Beginner
Numbered Outline Continuation Headings
 
Join Date: Feb 2015
Location: Abu Dhabi
Posts: 45
rdross51 is on a distinguished road
Default

Incorrect posting of replay and since I can't find a way to delete it, Iv'e changed the test. Please disregard.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbered Outline Continuation Headings 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
Numbered Outline Continuation Headings Headings and Number Outline Problem (MS Office 2008) triodia Word 2 05-07-2012 02:03 AM
Numbered Outline Continuation Headings 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

Other Forums: Access Forums

All times are GMT -7. The time now is 06:45 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft