- Joined
- Apr 17, 2010
- Messages
- 1
- Reaction score
- 0
Hi, I have a folder full of hundreds of word documents (word 2002 version).
I need to loop trough all the docs in the folder and move them to 2 other folders. Now this itself is not an issue, however my criteria is.
What I need to do is assess the document to see if it is password protected and if so move it to one folder and if not move it to the other.
I'm not interested in hacking the password (I know what it is!), I just need to see if it is password protected or not.
Is there a way to do this efficiently without having code that tries to open each document and then use error trapping to identify that it is password protected when it fails to open?
Thanks
I need to loop trough all the docs in the folder and move them to 2 other folders. Now this itself is not an issue, however my criteria is.
What I need to do is assess the document to see if it is password protected and if so move it to one folder and if not move it to the other.
I'm not interested in hacking the password (I know what it is!), I just need to see if it is password protected or not.
Is there a way to do this efficiently without having code that tries to open each document and then use error trapping to identify that it is password protected when it fails to open?
Thanks