Options.DefaultTrayID property (Word)

Returns or sets the default tray your printer uses to print documents. Read/write WdPaperTray.

Syntax

expression. DefaultTrayID

expression A variable that represents an Options object.

Remarks

Use the DefaultTray property with a string from the Default tray box on the Print tab in the Options dialog box to set this same option.

Example

This example sets Word to use the upper print tray, and then it prints the active document.

Options.DefaultTrayID = wdPrinterUpperBin 
ActiveDocument.PrintOut

This example returns the current setting of the Default tray option on the Print tab in the Options dialog box.

Dim lngTray As Long 
 
lngTray = Options.DefaultTrayID

See also

Options 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.