Share via


DefaultSorting Property

WdBookmarkSortBy

WdBookmarkSortBy can be one of these WdBookmarkSortBy constants.
wdSortByLocation
wdSortByName

expression.DefaultSorting

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

This property doesn't affect the order of Bookmark objects in the Bookmarks collection.

Example

This example sorts bookmarks by location and then displays the Bookmark dialog box.

ActiveDocument.Bookmarks.DefaultSorting = wdSortByLocation
Dialogs(wdDialogInsertBookmark).Show

Applies to | Bookmarks Collection Object

See Also | Dialogs Property | Show Method