Add-in problem opening word file with write permission
-
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
-
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
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.
-
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.
>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
-
>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
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.
-
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.