Class Browser (Word VBA)

The class Browser represents the browser tool used to move the insertion point to objects in a document. This tool is composed of the three buttons at the bottom of the vertical scroll bar.

Set

To use a Browser class variable it first needs to be instantiated, for example

Dim brw as Browser
Set brw = Application.Browser

Browser class variables can be set using the Application.Browser procedure.

Next

Moves the selection to the next item indicated by the browser target. Use the Target property to change the browser target.

With Application.Browser 
 .Target = wdBrowseComment 
 .Next 
End With

Parent

Returns an object that represents the parent object of the specified Browser object.

Dim objParent As Object
Set objParent = Application.Browser.Parent

Previous

Moves the selection to the previous item indicated by the browser target. Use the Target property to change the browser target.

With Application.Browser 
 .Target = wdBrowseTable 
 .Previous 
End With

Target

Returns or sets the document item that the Previous and Next methods locate.

Possible Values are wdBrowseComment - Places insertion point before next or previous comment, wdBrowseEdit - Places insertion point before next or previous edit, wdBrowseEndnote - Places insertion point before next or previous endnote, wdBrowseField - Places insertion point before next or previous browsefield, wdBrowseFind - Places insertion point before next or previous browsefind, wdBrowseFootnote - Places insertion point before next or previous footnote, wdBrowseGoTo - Places insertion point before next or previous GoTo item, wdBrowseGraphic - Places insertion point before next or previous graphic, wdBrowseHeading - Places insertion point before next or previous heading, wdBrowsePage - Places insertion point before next or previous page, wdBrowseSection - Places insertion point before next or previous section, wdBrowseTable - Places insertion point before next or previous table.
With Application.Browser 
 .Target = wdBrowseComment 
 .Next 
End With