PrintPreview Property

Microsoft Word Visual Basic

PrintPreview Property

       

True if print preview is the current view. Read/write Boolean.

expression.PrintPreview

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example switches the view to print preview.

PrintPreview = True

This example switches the active window from print preview to normal view.

PrintPreview = False
ActiveDocument.ActiveWindow.View.Type = wdNormalView