View.ShowBookmarks property (Word)
True if square brackets are displayed at the beginning and end of each bookmark. Read/write Boolean.
Syntax
expression. ShowBookmarks
expression An expression that returns a 'View' object.
Example
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro