
Tips.Net > WordTips Home > Editing > Bookmarks > Removing All Bookmarks
Summary: Got a file that has a bunch of bookmarks you no longer need? Removing them manually can quickly get tiresome. This tip includes a short macro you can use to remove the bookmarks very, very quickly. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
Some people absolutely love bookmarks. They do come in handy, but if someone else set bookmarks in a document, you may not need them once you get the document. If there are many, many bookmarks set (remember, we are talking about people who really love bookmarks), removing them all one at a time can be rather tedious.
If you find yourself in this situation, you will want to keep the following macro handy. It examines the active document (the one you are looking at) and removes all the bookmarks within it.
Sub RemoveAllBookmarks()
Dim objBookmark As Bookmark
For Each objBookmark In ActiveDocument.Bookmarks
objBookmark.Delete
Next
End Sub
You should note that this simply deletes the bookmark, not any text referenced by the bookmark.
Tip #1630 applies to Microsoft Word versions: 97 2000 2002 2003
More Power! Expand your skills and make Word really sing! It's all possible with macros. The best resource anywhere for macros is WordTips: The Macros. Check it out today!
Have thousands of WordTips at your fingertips, on your own system. Answer your own questions or help support others. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Pet Tips
Word2007 Tips
WordTips