logo
Office How to Delete Bookmarks in Word

How to Delete Bookmarks in Word

By Sophia | Last Updated

When you receive a Word document from your colleague, you may find that there are some bookmarks in this document. How can we delete bookmarks in Word? In this passage, we would talk about it.

  1. Delete All Bookmarks manually
  2. Delete All the Bookmarks Through VBA

Delete Some Bookmarks manually

Once you find that there are just some bookmarks in your document, you can delete all the bookmarks manually.

Step 1: Launch your Word, navigate to Insert>>Bookmark.

find bookmark in insert

Step 2: In the coming dialog, all bookmarks of current document are listed in the drop-down box of Bookmark sort by name or location, select the bookmark you want to remove and click Delete.

find and delete specific bookmark

Delete All the Bookmarks Through VBA

When you find that there are too many bookmarks, you may feel annoying if you delete each of them respectively. Fortunately, there is a powerful tool in Word that is the VBA editor. Therefore, we will use VBA to help you batch remove multiple bookmarks in a document.

Step 1: Press Alt+F11 at the same time to bring up the Microsoft visual basic for application window.

open vba in word

Step 2: Click Insert>>Module and paste the under codes into the newly opened module. Then press F5 or the run icon.

Sub DeleteAllBookmarksInDoc()
  Dim objBookmark As Bookmark
  Dim nBookmark As Integer
  Dim strButtonValue As String
  Dim objDoc As Document
  Application.ScreenUpdating = False
  Set objDoc = ActiveDocument
  nBookmark = objDoc.Bookmarks.Count
  If nBookmark0 Then
    strButtonValue = MsgBox("Do you want to remove all " & nBookmark & " bookmark(s) in this document?", vbYesNo)
    If strButtonValue = vbYes Then
      For Each objBookmark In objDoc.Bookmarks
        objBookmark.Delete
      Next objBookmark
      MsgBox ("All bookmarks in this document have been deleted.")
    Else
      Exit Sub
    End If
  End If
  Application.ScreenUpdating = True
End Sub

open and see the module

Step 3: Next you will see a prompt from which you can see the total number of bookmarks in the current document. Click Yes to delete them all.

prompt to ask your permission to delete bookmark

Then you would find that all the bookmarks in current document are removed.

Related Articles: