View.ShowBookmarks Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if square brackets are displayed at the beginning and end of each bookmark. Read/write Boolean.

expression .ShowBookmarks

expression An expression that returns a View object.

This example displays square brackets around bookmarks in all windows.

For Each aWindow In Windows 
 aWindow.View.ShowBookmarks = True 
Next aWindow

This example marks the selection with a bookmark, displays square brackets around each bookmark in the active document, and then collapses the selection.

ActiveDocument.Bookmarks.Add Range:=Selection.Range, Name:="temp" 
ActiveDocument.ActiveWindow.View.ShowBookmarks = True 
Selection.Collapse Direction:=wdCollapseStart

Concepts

Other resources

Show: