Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a password protected Word97 doc using VB6.

Status
Not open for further replies.

Jimreaper

MIS
May 22, 2001
21
US
Does anyone know how to open a password protected Word97 doc using VB6. I would like to pass the password so the user doesn't have to enter a password. I would like the doc to be protected from the user, only VB will update the doc.

I have the app opening the doc currently. I just want to pass the password.
Thanks
newbie Jim
 
Not sure about VB6 but in VBA the password is just passed as an argument on the Open Method.

example:

Documents.Open FileName:="p:\doc2.doc", PasswordDocument:="whatever"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top