DefaultOrientation Property

Microsoft Word Visual Basic

DefaultOrientation Property

       

Returns or sets the default orientation for feeding envelopes. Read/write WdEnvelopeOrientation.

WdEnvelopeOrientation can be one of these WdEnvelopeOrientation constants.
wdCenterClockwise
wdCenterLandscape
wdCenterPortrait
wdLeftClockwise
wdLeftLandscape
wdLeftPortrait
wdRightClockwise
wdRightLandscape
wdRightPortrait

expression.DefaultOrientation

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets envelopes to be fed face up, centered, and in portrait orientation.

With ActiveDocument.Envelope
    .DefaultFaceUp = True
    .DefaultOrientation = wdCenterPortrait
    MsgBox "Feed envelopes centered, face up, " _
        & "in portrait orientation"
End With