Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If a workbook is already open and a user tries to open it across a
network connection, they get the "Read Only / Notify" dialog. Is there a convenient way to detect that one user already has the workbook open, and prevent a second user from opening the file at all, not even as Read Only? Ed |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is no "convenient way" to do this. It can be done but is not
convenient as it requres using Windows API calls and a lot of faffing about. -- http://www.alignment-systems.com "Ed" wrote: If a workbook is already open and a user tries to open it across a network connection, they get the "Read Only / Notify" dialog. Is there a convenient way to detect that one user already has the workbook open, and prevent a second user from opening the file at all, not even as Read Only? Ed |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ed,
You can add code to workbook's Open event and see if its .ReadOnly property is true. Then put up a msgbox and .Close. However, if the user disables macros/events, then this will not function. Or if the user actually wants it open as ReadOnly. NickHK "Ed" wrote in message ups.com... If a workbook is already open and a user tries to open it across a network connection, they get the "Read Only / Notify" dialog. Is there a convenient way to detect that one user already has the workbook open, and prevent a second user from opening the file at all, not even as Read Only? Ed |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Prevent users to use a workbook/sheet after a specified day | Excel Worksheet Functions | |||
Can I share a selfcert macro workbook with other network users | Excel Discussion (Misc queries) | |||
How to prevent any one from opening my workbook | New Users to Excel | |||
Prevent Users from unsharing a workbook | Excel Worksheet Functions | |||
How to allow multiple users to update workbook (on network)? | Excel Discussion (Misc queries) |