Compartilhar via


Envelope.FeedSource Property

Word Developer Reference

Returns or sets the paper tray for the envelope. Read/write WdPaperTray.

Syntax

expression.FeedSource

expression   Required. A variable that represents an Envelope object.

Example

This example asks the user whether envelopes are fed into the printer manually. If the answer is yes, the example sets the paper tray to manual envelope feed.

Visual Basic for Applications
  Sub exFeedSource()
Dim intResponse As Integer

intResponse = _
    MsgBox("Are the envelopes manually fed?", vbYesNo)
If intResponse = vbYes then
    On Error GoTo errhandler
    ActiveDocument.Envelope.<strong class="bterm">FeedSource</strong> = _
        wdPrinterManualEnvelopeFeed
End If

Exit Sub

errhandler: If Err = 5852 Then MsgBox _ "Envelope not part of the active document"

End Sub

See Also