LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default How to tell if xls is open?

(Excel 2003)

I've seen information on this but still confused.

On a company network, I have Master.xls in a folder accessable by many
users.

Another workbook, Slave.xls, uses VBA to open Master.xls from the
network.

I want ...

a) ...Master.xls to open editable if NOT currently opened editable by
other users.
(Users having it open as read-only is irrelevant.)

b) ...to run other code if Master.xls IS currently opened editable by
another user.
(Users having it open as read-only is irrelevant.)

I've seen some code that first checks if the file is open. Is there
any way to perform this check by simply trying to open the file (as in
my scenario above)? I'm afraid in the split second between checking
and opening, another user might open it.

Also, I'm not sure if the other code I found was applicable on a
network with many users. It sounded more like it was being used on an
local machine and checking if a file was open in their session of
Excel.

Thanks in advance if anyone can get me started.

-Chuck

 
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
ON OPEN VBA Code input incorrectly now excel sheet wont open mmartin New Users to Excel 1 February 16th 11 11:33 PM
Opening Excel, Book1 opens, remains open with other workbook open DanieB Excel Discussion (Misc queries) 0 September 3rd 09 08:23 AM
excel 2003 saved file will not open without a blank workbook open Bob Excel Discussion (Misc queries) 4 November 11th 06 04:24 PM
workbooks.open function fails to open an existing excel file when used in ASP, but works in VB. san Excel Programming 1 January 3rd 06 03:22 AM
Open email windows can't open, excel shreadsheet file .xls ? skiz Excel Discussion (Misc queries) 0 October 2nd 05 07:03 PM


All times are GMT +1. The time now is 08:55 AM.

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"