Hi
I have the following macro assigned to a button and when I open it in read/write it comes up with runtime error 424 Object required.
Any ideas? I need is so when someone else tries top open when already open comes up with a message box "READ ONLY"
Sub OPENOS()
Workbooks.Open Filename:= _
"\\LO-NAS01\Passenger Accounts\SHARED\passacc\Excel\passacc\os2020.xlsm" _
, UpdateLinks:=0
If Wb.ReadOnly Then
MsgBox "THIS FILE IS READ ONLY"
End If
End Sub
I have the following macro assigned to a button and when I open it in read/write it comes up with runtime error 424 Object required.
Any ideas? I need is so when someone else tries top open when already open comes up with a message box "READ ONLY"
Sub OPENOS()
Workbooks.Open Filename:= _
"\\LO-NAS01\Passenger Accounts\SHARED\passacc\Excel\passacc\os2020.xlsm" _
, UpdateLinks:=0
If Wb.ReadOnly Then
MsgBox "THIS FILE IS READ ONLY"
End If
End Sub