it is quite easy using vba to determine if another file is open, and do nothing if it is...
however i have a modified view of the problem...
UserA opens and excel file located in a common folder (network). what i would like to happen is if another UserB opens the same file (which of course, the "file already in use" message appears), that excel would close itself (only that particular workbook, though)...
any suggestions? ive tried lots of techniques already... but they all fail when it comes to UserA and UserB opening the same file within seconds of each other...
hhhmmm... btw, is there a way (maybe through calling the windows api) to trap the "file already in use" message, then go from there?
thanks a lot...
=alfred
however i have a modified view of the problem...
UserA opens and excel file located in a common folder (network). what i would like to happen is if another UserB opens the same file (which of course, the "file already in use" message appears), that excel would close itself (only that particular workbook, though)...
any suggestions? ive tried lots of techniques already... but they all fail when it comes to UserA and UserB opening the same file within seconds of each other...
hhhmmm... btw, is there a way (maybe through calling the windows api) to trap the "file already in use" message, then go from there?
thanks a lot...
=alfred