hi all,
how can i check follow:
I have opened file A
And after run code i want to check if is file B opened read only?
i tried this, but doesnt works:
maybe i need define instead thisworkbook to path to file B?set target = Workbooks.Open FileName:= "Y:\path\aa\bb\B", UpdateLinks:=0 If target.ReadOnly = True Then MsgBox "read-only"
thx a lot