open doc with vb but need to see if haspassword first?

M

mac

I am trying to determine if a password is needed to
open a word doc in VB code before I open the doc so I
dont get the MSWORD enter password screen in the middle
of my app. I see hasspassword is available but only
after you open the doc?? what good is that?
 
J

Jean-Guy Marcil

Hi Mac,

All you have to do is trap the error, and thus ignore the password protected
documents in your routine.

--
Cheers!
_______________________________________
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