View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jake Marx[_3_] Jake Marx[_3_] is offline
external usenet poster
 
Posts: 860
Default Detect If Excel WB Is Shared?

Hi MDW,

MDW wrote:
However, my code seems to fail if the workbook is shared for multiple
users. I've been looking around the help and I can't find any way to
detect this. Does anyone know a way to a) detect if a workbook is
shared and b) remove the sharing if needed?


Sebastien is correct - you can use the MultiUserEditing property to see if a
workbook is shared. If you want to remove sharing, you can use the
ExclusiveAccess method:

ActiveWorkbook.ExclusiveAccess

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]