DefaultSorting Property
Applies To
Bookmarks collection object.
Description
Returns or sets the sorting option for bookmark names displayed in the Bookmark dialog box (Insert menu). Can be one of the following WdBookmarkSortBy constants: wdSortByLocation or wdSortByName. Read/write Long.
Remarks
This property doesn't affect the order of Bookmark objects in the Bookmarks collection.
See Also
Dialogs property, Show method.
Example
This example sorts bookmarks by location and then displays the Bookmark dialog box.
ActiveDocument.Bookmarks.DefaultSorting = wdSortByLocation
Dialogs(wdDialogInsertBookmark).Show