Results 1 to 2 of 2

Thread: Microsoft Word

  1. #1
    Joffies
    Guest

    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

  2. #2
    Addicted Member Supester's Avatar
    Join Date
    Nov 2001
    Location
    The Netherlands
    Posts
    220
    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
  •  



Click Here to Expand Forum to Full Width