Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
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]

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect open-state of xls from outside Excel Waterloo Excel Discussion (Misc queries) 2 May 6th 09 10:01 AM
How can I detect that an excel cell has been clicked Ballantine Excel Discussion (Misc queries) 5 August 14th 08 10:09 AM
Detect what version (if any) of Excel is installed Keith Brautigam Excel Programming 6 April 2nd 04 12:54 AM
detect the Excel Update exc0901 Stefan[_3_] Excel Programming 1 October 14th 03 12:40 PM
Detect Excel Version Stacy Haskins Excel Programming 2 August 19th 03 09:55 PM


All times are GMT +1. The time now is 04:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"