how to detect if a .xls is in use

  • Thread starter Thread starter Marc Miller
  • Start date Start date
M

Marc Miller

Does anyone know how to dectect if an excel spreadsheet it in
use before using workbooks.open(path&file) ?

I can't seem to find anything in the search engines or help files
for this.

TIA,
Marc Miller
 
Marc,

You could try to open the file using a filestream if it returns an in use
error you know it is currently opened by another process(Excel).

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top