Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 965 Bytes

Word.Document.ClosePrintPreview.md

File metadata and controls

48 lines (28 loc) · 965 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Document.ClosePrintPreview method (Word)
vbawd10.chm158007554
vbawd10.chm158007554
Word.Document.ClosePrintPreview
8b4beae3-1893-5dbf-4463-bbce0c63b8ee
06/08/2017
medium

Document.ClosePrintPreview method (Word)

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

Syntax

expression. ClosePrintPreview

expression Required. A variable that represents a Document object.

Remarks

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

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

See also

Document Object

[!includeSupport and feedback]