I would like to use VBA code to do the following when a spreadsheet is opened:
- If the file is already in use by someone else, have a messagebox pop up and say something like" User nnnnn is using this file right now, and you must wait until it is not in use to enter your information." Then when the user clicks "OK" Excel would close. The user WOULD NOT get the normal message about the file being in use and asking whether or not they want to open it read-only or be notified when it is available.
- If the file is NOT already in use, just have a messagebox that says to make the desired data entry and save and close the file, as others need to input information also.
Can this be done?