TextWrap Property

Microsoft Word Visual Basic

TextWrap Property

       

True if document text wraps around the specified frame. Read/write Boolean.

expression.TextWrap

expression   Required. An expression that returns a Frame object.

Example

This example causes text to not wrap around the first frame in the active document.

If ActiveDocument.Frames.Count >= 1 Then
    ActiveDocument.Frames(1).TextWrap = False
End If

This example causes text to wrap around all frames in the active document.

For Each aFrame In ActiveDocument.Frames
    aFrame.TextWrap = True
Next aFrame