Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-02-2020, 04:08 AM
grahamsims grahamsims is offline Macro to delete cross-reference error message when bookmark deleted Mac OS X Macro to delete cross-reference error message when bookmark deleted Office 2019
Novice
Macro to delete cross-reference error message when bookmark deleted
 
Join Date: Dec 2020
Posts: 5
grahamsims is on a distinguished road
Default Macro to delete cross-reference error message when bookmark deleted

I have a document which uses many cross references linked to bookmarks. When the document is edited, some of these bookmarks are intentionally deleted. When all of the fields in the document are updated, the deleted bookmarks generate "Error! Reference source not found" where the cross reference field occurs.


Using find and replace will remove the error message text but not the underlying {REF field}. If the fields are updated again or the document is printed, the deleted error message text reappears.
I do not want to unlink fields and do not want to remove all cross references. Going through the document to manually delete would take for ever. Can anyone help with a macro which locates all of these error messages and deletes the underlying cross reference fields? Would be hugely grateful if a solution could be found.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to delete cross-reference error message when bookmark deleted Find {text} and insert cross reference from bookmark Slamzor Word VBA 1 12-01-2017 05:12 PM
Macro to delete cross-reference error message when bookmark deleted Hide error message from missing bookmark lodi123 Word 2 03-28-2017 11:24 PM
Macro to delete cross-reference error message when bookmark deleted Cross-reference does not maintain formatting from bookmark frannie Word 2 03-23-2017 04:33 PM
Macro to delete cross-reference error message when bookmark deleted Weird issue with bookmark and cross-reference Maddog32 Word 2 06-10-2016 02:39 PM
Macro to delete cross-reference error message when bookmark deleted Need help with using bookmark and cross-reference mpdsal Word 1 07-26-2012 01:05 PM

Other Forums: Access Forums

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