Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
TTD TTD is offline
external usenet poster
 
Posts: 5
Default How to determine an opened sheet( Read Only)

Hi,

when someone opens a workbook which already was opened by someone else, the
person gets a dialogbox, inwhich (s)he can select 'read only'.

But when the user opens the workbook through a script, the user is not
warned.

I want to stop the script if the opened workbook was already opened by
someone else.

How do I determine this?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to determine an opened sheet( Read Only)

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
--
Regards,
Tom Ogilvy


"TTD" wrote in message
et...
Hi,

when someone opens a workbook which already was opened by someone else,

the
person gets a dialogbox, inwhich (s)he can select 'read only'.

But when the user opens the workbook through a script, the user is not
warned.

I want to stop the script if the opened workbook was already opened by
someone else.

How do I determine this?

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
TTD TTD is offline
external usenet poster
 
Posts: 5
Default How to determine an opened sheet( Read Only)

Thanks Tom.



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
Limit to number of opened Read Onlys Wendy Excel Discussion (Misc queries) 0 September 11th 08 03:35 AM
how do i determine when a file was last opened manreis Excel Discussion (Misc queries) 1 July 22nd 06 04:44 PM
Rules that act on messages after they are opened & read? Perotin Excel Discussion (Misc queries) 1 December 5th 04 12:31 AM
How to determine if Workbook has been opened exclusively robot[_2_] Excel Programming 2 September 18th 04 09:42 PM
How to read sheet of currently opened workbook Jedi[_2_] Excel Programming 1 September 11th 03 11:00 AM


All times are GMT +1. The time now is 01:14 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"