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

  • Thread starter Thread starter mac
  • Start date Start date
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?
 
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
 
Back
Top