|
-
Nov 27th, 2001, 03:31 AM
#1
Microsoft Word
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
-
Nov 27th, 2001, 09:49 AM
#2
Addicted Member
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......
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|