if the file is shared, do not execute macro

N

nerohnze

I need some help about executing a macro if and only if the file is not shared.
I searched some codes like:
<If Workbooks("x.xls").Shared = True>
But it didn't fit.
How can i adjust the code?
Thanks for help.
 
D

Dave Peterson

Look in VBA's help for: MultiUserEditing


I need some help about executing a macro if and only if the file is not shared.
I searched some codes like:
<If Workbooks("x.xls").Shared = True>
But it didn't fit.
How can i adjust the code?
Thanks for help.
 
Top