ClosePrintPreview Method

Microsoft Word Visual Basic

ClosePrintPreview Method

       

Switches the specified document from print preview to the previous view. If the specified document isn't in print preview, an error occurs.

expression.ClosePrintPreview

expression   Required. An expression that returns a Document object.

Example

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

If ActiveDocument.PrintPreview = True Then _
    ActiveDocument.ClosePrintPreview
ActiveDocument.ActiveWindow.View.Type = wdNormalView