View.ShowTabs Property

Word Developer Reference

True if tab characters are displayed. Read/write Boolean.

Syntax

expression.ShowTabs

expression   An expression that returns a View object.

Example

This example inserts a tab before the selection and displays tab characters in the window for Document2.

Visual Basic for Applications
  With Windows("Document2")
    .Activate
    .View.ShowTabs = True
End With
Selection.InsertBefore vbTab
Selection.Collapse Direction:=wdCollapseEnd

This example splits the active window, shows tab characters in the first pane, and hides tab characters in the second pane.

Visual Basic for Applications
  With ActiveDocument.ActiveWindow
    .Split = True
    .Panes(1).View.ShowTabs = True
    .Panes(2).View.ShowTabs = False
End With

See Also