View Single Post
 
Old 12-06-2016, 01:24 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by derekcentrico View Post
The only hyperlinks and data referenced as a potential side effect are the bookmarks and cross references that I want to defeat, so whatever I do wouldn't be a negative to anything like that.
As I said before, simply deleting the table will delete all the bookmarks associated with it. Accordingly, you wouldn't need your 'removebookmarks' sub or an 'UnlinkBookmarks' sub and your entire code could be reduced to just two lines:
Code:
Sub CleanUp()
ActiveDocument.Fields.Unlink
ActiveDocument.Tables(1).Delete
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote