DefaultTray Property

Microsoft Word Visual Basic

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

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.

Options.DefaultTray = "Lower tray"
		

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

Msgbox Options.DefaultTray