Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Add-in problem opening word file with write permission

Add-in problem opening word file with write permission

Scheduled Pinned Locked Moved Visual Basic
helpquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I am trying to write add-in to open a specified word document with write and read permission for now it only gives me readonly permission with a message saying this documne is been used by myself. Dim WApp As Object Set WApp = CreateObject("Word.Application") 'WApp.ReadOnly = False WApp.Documents.Open str_FullPathToDownloadedFile, ReadOnly:=False what could be the problem? Shin

    J 1 Reply Last reply
    0
    • L Lost User

      I am trying to write add-in to open a specified word document with write and read permission for now it only gives me readonly permission with a message saying this documne is been used by myself. Dim WApp As Object Set WApp = CreateObject("Word.Application") 'WApp.ReadOnly = False WApp.Documents.Open str_FullPathToDownloadedFile, ReadOnly:=False what could be the problem? Shin

      J Offline
      J Offline
      John Kuhn
      wrote on last edited by
      #2

      Did you run the same code before? And when you ran it before, did you close the document and shut down the instance of Word you created? If not, then a) there are 1...N instances of Word running (check your task list) and b) odds are, your word document is in use by one of them. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

      L 1 Reply Last reply
      0
      • J John Kuhn

        Did you run the same code before? And when you ran it before, did you close the document and shut down the instance of Word you created? If not, then a) there are 1...N instances of Word running (check your task list) and b) odds are, your word document is in use by one of them. What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        >N instances of Word running ( you are right sometimes when i launch the word document it doesn't show up the winword.exe is there? i'm not sure why. by the way, do you know where i can look for help with these object class for office application.name application... it's not in msdn right!? this only for add-in project? Thanks for your help. Shin

        J 1 Reply Last reply
        0
        • L Lost User

          >N instances of Word running ( you are right sometimes when i launch the word document it doesn't show up the winword.exe is there? i'm not sure why. by the way, do you know where i can look for help with these object class for office application.name application... it's not in msdn right!? this only for add-in project? Thanks for your help. Shin

          J Offline
          J Offline
          John Kuhn
          wrote on last edited by
          #4

          Some of it is here[^], but the best bet is to look right inside the help file for Word, etc., the go to the section called "Programming Information". What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

          L 1 Reply Last reply
          0
          • J John Kuhn

            Some of it is here[^], but the best bet is to look right inside the help file for Word, etc., the go to the section called "Programming Information". What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            thanks for the information I just found and bought a book called "visual basic Add-in" from o'relly. I will study bit more before dive into the add-in I really appreciate your input. Shin

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups