PrintPreview Method

Microsoft Word Visual Basic

PrintPreview Method

       

Switches the view to print preview.

Note   In addition to using the PrintPreview method, you can set the PrintPreview property to True or False to switch to or from print preview, respectively. You can also change the view by setting the Type property for the View object to wdPrintPreview.

expression.PrintPreview

expression   Required. An expression that returns an Document object.

Example

This example switches the active document to print preview if it's currently in some other view.

If Application.PrintPreview = False Then
    ActiveDocument.PrintPreview
End If