Quote:
Originally Posted by derekcentrico
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