Document.Unprotect give runtime error 5485 - The password is incorrect
I am using Word.Application and Word.Document objects in Microsoft
Visual Basic 6.
When I open a word document in comments only mode from my application I
am protecting it using a password. I am assigning a GUID as password
and storing it in a global string variable. When I use the same global
string variable to unprotect the document, I get an error saying the
password is incorrect. I have tried printing the value of the global
string variable and it is same. Not sure how to get rid of this error.
Please help.
|