password protected

G

greg

Hello,
I need to write a program to open and update a bunch of word documents.
problem is, that some are password protected.
and if i hit them, then the user password dialog opens.
is there a way to tell if a document is password protected? an open
command?
so i know to skip that document?

thanks
 
J

Jean-Guy Marcil

greg was telling us:
greg nous racontait que :
Hello,
I need to write a program to open and update a bunch of word
documents. problem is, that some are password protected.
and if i hit them, then the user password dialog opens.
is there a way to tell if a document is password protected? an open
command?
so i know to skip that document?

Try this:
http://word.mvps.org/FAQs/MacrosVBA/CheckIfPWProtectB4Open.htm


--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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