I have a Read-only file and I want to un-Read it so that I can make changes and save them then revert it to Read-only.
I have tried the ff codes - but none of them worked..
many thanks
I have tried the ff codes - but none of them worked..
many thanks
Code:
ThisWorkbook.ChangeFileAccess xlReadWrite
SetAttr ActiveWorkbook, vbReadOnly
ActiveWorkbook.ChangeFileAccess Mode:=xlReadOnly
ThisWorkbook.ChangeFileAccess xlReadOnly