Browser Object

Microsoft Word Visual Basic

Browser Object

         
Application Browser

Represents the browser tool used to move the insertion point to objects in a document. This tool is comprised of the three buttons at the bottom of the vertical scroll bar.

Using the Browser Object

Use the Browser property to return the Browser object. The following example moves the insertion point just before the next field in the active document.

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

The following example moves the insertion point to the previous table and selects it.

With Application.Browser
    .Target = wdBrowseTable
    .Previous
End With
If Selection.Information(wdWithInTable) = True Then
    Selection.Tables(1).Select
End If