DefaultTrayID Property 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.

currTray = Options.DefaultTrayID