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
 
Top