Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-11-2020, 04:04 PM
tlafferty tlafferty is offline Use VBA to insert cross references by looping through entire document from insertion point to end Windows 10 Use VBA to insert cross references by looping through entire document from insertion point to end Office 2016
Novice
Use VBA to insert cross references by looping through entire document from insertion point to end
 
Join Date: May 2020
Posts: 1
tlafferty is on a distinguished road
Default Use VBA to insert cross references by looping through entire document from insertion point to end

I'd like to use VBA to insert a cross reference link to the table of contents for every time it finds the text "Click to Return to Table of Contents"



This can't be an ordinary hyperlink to a place in the document, because when I save as PDF, it breaks the link. If I insert a cross reference, it works fine when I convert to PDF.

The table of contents only includes heading 1, and does not include the words "Table of Contents" as part of the table. I have manually inserted a bookmark named "TableofContents" at the top of the table. The text the bookmark displays is "Table of Contents" and it is to this point I need to link.
Reply With Quote
 

Tags
cross-reference, vba, word 16.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use VBA to insert cross references by looping through entire document from insertion point to end Is there a way to summarise all bookmarks and cross references used in a Word document? Training Word VBA 1 11-09-2017 12:06 AM
Use VBA to insert cross references by looping through entire document from insertion point to end Move Insertion Point with VBA Grasor Word VBA 2 10-11-2016 08:50 PM
Use VBA to insert cross references by looping through entire document from insertion point to end cross references and dynamic numbering in a document JJ_Writing Word 4 11-05-2015 02:19 AM
Updating document causes change lines on all cross references. :( garybeck Word 2 05-08-2015 09:15 PM
Convert manual cross references in footnotes to other footnotes to automatic cross references ghumdinger Word VBA 7 11-20-2014 11:47 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:13 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