ClosePrintPreview Method

Applies To

Document object.

Description

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

Syntax

expression.ClosePrintPreview

expression   An expression that returns a Document object.

See Also

PrintPreview method, PrintPreview property.

Example

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

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