Options.DefaultTray Property

Word Developer Reference

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

Syntax

expression.DefaultTray

expression   A variable that represents a Options object.

Remarks

When setting this property, you must specify a string found in the Default tray box on the Print tab in the Options dialog box. You can use the DefaultTrayID property and specify a WdPaperTray constant to set this same option.

Example

This example sets Word up to use the lower print tray.

Visual Basic for Applications
  Options.DefaultTray = "Lower tray"

This example returns the string found in the Default tray box on the Print tab in the Options dialog box.

Visual Basic for Applications
  Msgbox Options.DefaultTray

See Also