Determine if a document is password protected

J

Jørn Esbensen

Is there a way to determine if a word file is password protected BEFORE it
is opened?

I have a small VB-application that opens word documents using the word
com-object.
I have managed to eliminate alle fileconversion-prompts etc. But I can't
figure out how to ignore password-protected documents.

I don't want to crack the code, I just want to skip the file.

Regards
Jørn Esbensen
 

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