Determine if a document is password protected

Determine if a document is password protected

Post by Jn Esbense » Sat, 18 Jun 2005 19:14:31


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
Jn Esbensen
 
 
 

Determine if a document is password protected

Post by Jonathan W » Sat, 18 Jun 2005 19:45:18

Hi Jn

This article may help you

Skipping Password-Protected Documents in a Batch Process
http://www.yqcomputer.com/


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org