Opening Word Doc in Read Only Mode?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • panteraboy
    New Member
    • Apr 2008
    • 48

    #1

    Opening Word Doc in Read Only Mode?

    Hi folks, Does anyone know if its possible to program the vba code so that the Word Doc i open is in Read Only mode.
    Regards
    Paul
  • FishVal
    Recognized Expert Specialist
    • Jun 2007
    • 2656

    #2
    Hello, Paul.

    See Word help on Documents.Open method.
    Or even better - open in object browser:
    library "Word" -> property "Applicatio n" -> property "Documents" -> method "Open". It shows you parameters, which in most cases have self-explaining names and available help.
    Or, if you are seeking easy ways, then just record macro in Word and see its code.

    Regards,
    Fish

    Comment

    • panteraboy
      New Member
      • Apr 2008
      • 48

      #3
      Helpful as always fish. Cheers again.
      Regards
      Paul

      Comment

      • FishVal
        Recognized Expert Specialist
        • Jun 2007
        • 2656

        #4
        You are welcome.

        Best regards,
        Fish

        Comment

        • panteraboy
          New Member
          • Apr 2008
          • 48

          #5
          Hi Fish sorry for bothering you again but I have 1 Final problem. Im creating a touchscreen database for computer products that were selling. I have a small specification screen of the desired model. On this screen there is a button that when clicked opens the models full specification in a word document in read only mode (thanks for the help lol). On this screen is a an image which when clicked on returns the user back to access and closes the word doc. I have another button on the small specs screen which when clicked on prints out the full specs. My problem is this. Im trying to make the return to access image of the word doc disappear for printing. I cant access its .visability property

          Code:
          App.Documents.Image1.visibilty= false
          There dosent seem to be away to reference this property or maybe im looking in the wrong places as im a silly newbie
          Regards
          Paul

          Comment

          • FishVal
            Recognized Expert Specialist
            • Jun 2007
            • 2656

            #6
            Hi, Paul.

            Word.Applicatio n object has "Visible" property if you are looking for a way to prevent printed document from being displayed.

            Regards,
            Fish

            Comment

            Working...