Detect An Interrupted File Open

G

George Lee

Is there a way to tell if the file open process has been interrupted, say by
a Password entry dialog? Several documents hang on the following line if the
file is password protected:
Set gWordDocument =
gWordApp.Documents.Add(gFileSources.SourceDocument)

In this case, the manual workaround is to click in the document's Word icon
in the toolbar and click Open Read Only in the Password Dialog.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top