Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default How to check for Exclusive access to a workbook

Hi,
I've been trying this out for a while but am still scratching my head...

I need to check if an Excel Spreadsheet is already open by another user, so
that I don't open it if it is already being edited. Is there a way I can
determine this in Excel VBA?
I don't want the messagebox to come up stating that the sheet has macros
either, if this can be helped.

Many thanks in advance.
Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to check for Exclusive access to a workbook




http://support.microsoft.com?kbid=138621
XL: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=291295
XL2002: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=213383
XL2000: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=184982
WD97: VBA Function to Check If File or Document Is Open

If you have use a macro to check, then the workbook doing the checking will
have a macro.


--
Regards,
Tom Ogilvy
"Andy" wrote in message
...
Hi,
I've been trying this out for a while but am still scratching my head...

I need to check if an Excel Spreadsheet is already open by another user,

so
that I don't open it if it is already being edited. Is there a way I can
determine this in Excel VBA?
I don't want the messagebox to come up stating that the sheet has macros
either, if this can be helped.

Many thanks in advance.
Andy



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
Access to Excel check box conversion GD Excel Discussion (Misc queries) 5 April 13th 09 05:49 PM
Add tab access to check boxes in a protected Excel sheet form. Suebriquet Excel Discussion (Misc queries) 0 July 25th 07 07:12 PM
Activate check "Trust access to Visual Basic " in Excel Pablo via OfficeKB.com New Users to Excel 1 June 23rd 05 04:30 PM
link Access workbook to Excel workbook Toinett Excel Discussion (Misc queries) 1 January 31st 05 03:37 PM
How do you make an Excel workbook exclusive? Ron Excel Discussion (Misc queries) 3 November 27th 04 11:33 PM


All times are GMT +1. The time now is 12:31 PM.

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

About Us

"It's about Microsoft Excel"