Window.StyleAreaWidth property (Word)

Returns or sets the width of the style area in points. Read/write Single.

Syntax

expression. StyleAreaWidth

expression An expression that returns a Window object.

Remarks

When the StyleAreaWidth property is greater than 0 (zero), style names are displayed to the left of the text. The style area isn't visible in print layout or Web layout view.

Example

This example switches the active window to normal view and sets the width of the style area to 1 inch.

With ActiveDocument.ActiveWindow 
 .View.Type = wdNormalView 
 .StyleAreaWidth = InchesToPoints(1) 
End With

See also

Window 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.