Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Print PReview Screen (if open)

Status
Not open for further replies.

be17

Technical User
Feb 7, 2001
26
US
I would like to write some code that does the following:

If the print preview screen is open Then
Close the print preview screen.

I know the code for the second line
(ActiveDocument.ClosePrintPreview), but I am having trouble coming up
with how to write code for "If the print preview screen is open". Any
help would be appreciated. Thanks.

Bronwyn
 
This may give you some ideas:

If PrintPreview Then
PrintPreview = False
ActiveDocument.ActiveWindow.View.Type = wdNormalView
End If

Ilse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top