Check if Workbook is shared

  • Thread starter Thread starter Ladymuck
  • Start date Start date
L

Ladymuck

I would like an alert to pop up if someone tries to run a macro while the
workbook is in shared rather than exclusive mode. How would I do this?

Many thanks
Louise
 
Try this:

If ThisWorkbook.MultiUserEditing Then
MsgBox "Shared"
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top