FeedSource Property
Applies To
Envelope object.
Description
Returns or sets the paper tray for the envelope. Read/write Long.
Can be one of the following WdPaperTray constants:
- wdPrinterAutomaticSheetFeed
| |
| |
- wdPrinterLargeCapacityBin
| |
| - wdPrinterManualEnvelopeFeed
|
| |
| |
| |
| |
Note If you use this property before an envelope has been added to the document, an error occurs.
See Also
DefaultLaserTray property, EnvelopeFeederInstalled property.
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.
response = MsgBox("Are the envelopes manually fed?", vbYesNo)
If response = vbYes then
On Error GoTo errhandler
ActiveDocument.Envelope.FeedSource = wdPrinterManualEnvelopeFeed
errhandler:
If Err = 5852 Then MsgBox "Envelope not part of the active document"
End If