How to Use a Macro to Batch Delete Bookmarks in Word

How to Use a Macro to Batch Delete Bookmarks in Word

Xinya HAO (Hall)

View and hide bookmark brackets in Word

Sometimes your Word file may display gray brackets, which are bookmark brackets that cannot be easily deleted in edit mode.

P1

To hide these marks, go to Word Preferences (⌘ + ,) > View, and uncheck “Bookmarks”.

P2

Delete specific bookmarks

To delete a specific bookmark, navigate to Word > Insert Tab > Bookmark.

P3

Delete all bookmarks using a Macro

To quickly delete all bookmarks, you can use a Word Macro by following these two steps:

  1. Create a macro to delete all bookmarks in the file: Go to Word > Developer > Macros. Enter the macro name “DelBookmarks” and click the “+” button.

P4

After clicking the “+”, a new window will appear. Enter the following code, then save and close the window:

1
2
3
4
5
6
Sub DelBookmarks()
Dim MyBk As Bookmark
For Each MyBk In ActiveDocument.Bookmarks
MyBk.Delete
Next
End Sub

P5

  1. Run the macro. Return to the Macro tab, select the macro you just created, and click “Run”.

P6

😆沈老师,这下你学会了吗?

Comments
On this page
How to Use a Macro to Batch Delete Bookmarks in Word