View.ShowTabs Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .ShowTabs

expression An expression that returns a View object.

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

With Windows("Document2") 
 .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.

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


Other resources