How to dismiss PW-Dialog in protected files?

O

ODI

I try to scan documents to find out corrupt ones from earlier versions. My
code runs unattended. But i get the PW-Dialog for the protected files (not
content protection but file protection), this stops my code and waits user
interaction. How can i prevent this?

My code runs under Word 2003 - VBA
I used Application.DisplayAlerts = wdAlertsNone which should prevent this
PW-Dialog from appearing but it doesn't work!!! It must be a bug or the
PW-Dialog counts as an alert...

HasPassword-Property works after opening the document, which doesn't help
either, because i can't open it without entering the password.

Please HELP!
 

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