ThrottleWorks
Excel Ninja
Hi,
I am using below mentioned code to open a file.
How do I check if the user has already opened the file.
If the file is already open then I want to inform user and exit sub.
I do not know how do I check this. Can anyone help me in this please.
I am using below mentioned code to open a file.
How do I check if the user has already opened the file.
If the file is already open then I want to inform user and exit sub.
I do not know how do I check this. Can anyone help me in this please.
Code:
Application.EnableEvents = False
Workbooks.Open shMacro.Range("a1").Value
Application.EnableEvents = True
Set File1 = ActiveWorkbook