I have an application in Access 2K where I write some data to, and run a macro in, an Excel workbook. The workbook can be shared by various users on a network. For the procedure to run, the workbook must be closed. How do I determine if anyone has the workbook open, and if so, programmatically close it? There doesn't appear to be a handy "Workbook.AlreadyOpen" property.
Using VBA, of course.
Perhaps I should also ask: is it necessary to close all open instances of the workbook, or only the one the person running this procedure may have open? I have no way to test this beforehand, since I don't have a network available to test on.
Thank you for any help!
Regards,
Krisa
Using VBA, of course.
Perhaps I should also ask: is it necessary to close all open instances of the workbook, or only the one the person running this procedure may have open? I have no way to test this beforehand, since I don't have a network available to test on.
Thank you for any help!
Regards,
Krisa