I'm testing one of our vb6 programs against Word 2013, and have run into the subject error message - but haven't yet found a way around it. The program executes:
which works just fine with Word '03, but results in "the unprotect method or property is not available because this command is not available for reading" in Word '13.
I thought the solution might be as simple as converting the .doc to .docx but, after recompiling, I still get the same error.
Office 2013 isn't available on the development machine, so the reference being used is to Microsoft Word 11.0 Object Library. Could this be a contributing factor?
Any suggestions - short of rewriting?
Code:
Set wrdApp = CreateObject("Word.Application")
Set wrdDoc = wrdApp.Documents.Open(DocName)
wrdApp.Documents(wrdDoc).Unprotect (password)
I thought the solution might be as simple as converting the .doc to .docx but, after recompiling, I still get the same error.
Office 2013 isn't available on the development machine, so the reference being used is to Microsoft Word 11.0 Object Library. Could this be a contributing factor?
Any suggestions - short of rewriting?