Document.ClosePrintPreview Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Switches the specified document from print preview to the previous view.

expression .ClosePrintPreview

expression Required. A variable that represents a Document object.

If the specified document isn't in print preview, an error occurs.

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

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