Hallo!
I want to open a word document that is password protected. The document is password protected to open and password protected to change. Does any know or maybe have sample code on how to do this?????
Thanks
Je
Printable View
Hallo!
I want to open a word document that is password protected. The document is password protected to open and password protected to change. Does any know or maybe have sample code on how to do this?????
Thanks
Je
See here....try playing around with the passworddocument and writepassworddocument
Dim WordApp As Word.Application
Dim WordDoc As Word.Document
Set WordApp = New Word.Application
Set WordDoc = WordApp.Documents.Open(sFileName, passworddocument:="Aloha", writepassworddocument:="Aloha")
if you are between the brackets, the options are available also......