FeelGoodLost
08-12-2008, 12:28 PM
I have an application that needs to go through about 1000 word documents in a folder and modify them all slightly. It works well on 80 percent of them, but the other 20% have had the "Read Only Recommended" box checked under Options - Security in Word2003. I need to disable read only when the document opens. I've tried these lines of code, yet it will still open saying (READ ONLY) in the title bar and won't let me save(!):
Set MyDocument = Documents.Open(FileName:=.FoundFiles(lCount), ReadOnly:=False)
MyDocument.Protect wdNoProtection
SetAttr MyDocument.Path, vbNormal
any help would be soooo appreciated. :banghead:
Set MyDocument = Documents.Open(FileName:=.FoundFiles(lCount), ReadOnly:=False)
MyDocument.Protect wdNoProtection
SetAttr MyDocument.Path, vbNormal
any help would be soooo appreciated. :banghead: