This is the first time you've mentioned deleting the table; you previously mentioned deleting only the bookmarks. If you delete a table, all the bookmarks in it will be deleted at the same time, obviating the need to delete the bookmarks via a separate loop.
You can avoid the "Error! Reference source not found" result by not updating fields before printing (this is a Word option, set via File|Options|Display) but that won't prevent other actions from having the same effect, or you could unlink the cross-references in the document body via code like:
ActiveDocument.Fields.Unlink
Additional code would be required for unlinking in other story ranges. Do note that this will unlink all fields in the document body, including Tables of Contents, Captions, Hyperlinks, etc. If you want only to unlink cross-references, you would need to implement a loop that individually unlinks REF and PAGEREF fields.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|