I am populating bookmarks from an Access modules, but on occasion a variable
is null, when this happens I would like to delete the associated bookmark.
Can I delete the bookmark from Access, or do I have to delete it from Word?
How do I delete it?
Doug, thanks fror your previous answer.
Jonathan West - 22 Nov 2004 13:39 GMT
>I am populating bookmarks from an Access modules, but on occasion a
>variable
> is null, when this happens I would like to delete the associated bookmark.
> Can I delete the bookmark from Access, or do I have to delete it from
> Word?
> How do I delete it?
If the code is runnin gfrom within Access, you will need something like this
objWord.ActiveDocument.Bookmarks("ThisBookmark").Delete

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup