View.WrapToWindow property (Word)

True if lines wrap at the right edge of the document window rather than at the right margin or the right column boundary. Read/write Boolean.


expression. WrapToWindow

expression An expression that returns a 'View' object.


This property has no effect in print layout or Web layout view.


This example wraps the text to fit within the active window.

With ActiveDocument.ActiveWindow.View 
 .Type = wdNormalView 
 .WrapToWindow = True 
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.