View.ShowMainTextLayer property (Word)

True if the text in the specified document is visible when the header and footer areas are displayed. This property is equivalent to the Show/Hide Document Text button on the Header and Footer toolbar. Read/write Boolean.

Syntax

expression. ShowMainTextLayer

expression An expression that returns a 'View' object.

Example

This example displays the document header in the active window and hides the document text.

With ActiveDocument.ActiveWindow.View 
 .Type = wdPrintView 
 .SeekView = wdSeekCurrentPageHeader 
 .ShowMainTextLayer = False 
End With

See also

View Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.