Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Code to Delete Bookmarks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ron - 22 Nov 2004 13:05 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?

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.