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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect when an Excel spreadsheet is open

Status
Not open for further replies.

jayz12

Technical User
Mar 12, 2002
12
AU
Hi,
I've created a spreadsheet that exports data to it from Access. If the spreadsheet is opened while trying to export, I'd like an error message to appear like "Please close [name of spreadsheet] before exporting data".

Is there a code (when I click on a button)that will export data to a spreadsheet, but only when the spreadsheet is closed. And if open, display the error.

Thanks,
Jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top