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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking if active document is still open??

Status
Not open for further replies.

ftpdoo

Programmer
Aug 9, 2001
202
GB
How do i check if the active Word document is still open???

I'm doing this to check if its current in print preview mode:

If .Application.PrintPreview = False Then
.ActiveDocument.PrintPreview
End If

so i'm looking for something like:

If .application.quit = false then....???????

Any ideas??
Thankx,
Jonathan
 
Hi,
Your ActiveDocument cannot be closed. It what you believe to be the active document were closed, then, in actuality, another document would be the active document.
Maybe you ought to be looking at the Documents Collection to determine
1. What documents are open (because only open documents are in the Documents Collection) and
2. What document is the ActiveDocument.
Hope this helps. :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top