Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check if Network Shared Excel Workbook is Open

Status
Not open for further replies.

bdmangum

Technical User
Dec 6, 2006
171
US
I have an Excel workbook I built which users in my department use as a database. The workbook resides in a network folder. I built an executable which launches the workbook. The executable is simply a converted batch file which calls a vbscript file. The vbscript file is what actually loads the workbook.

My problem is that I want to prevent multiple users from opening the file, or even one user from opening it twice by accidentally clicking the shortcut twice. Since it launches from a vbscript file, I'm trying to find a method which checks the status of the workbook before opening the workbook. If the workbook is open anywhere, then I want the script to tell the user to try again later. I don't want them to have the current option of choosing between Read-Only, Notify, and Cancel.

Anyone have ideas on how to do this?

Thanks!
BD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top