disable Warnings in Excel

C

Crazyhorse

I created a database that exports data in an excel workbook. I would like to
delete Tabs from access to Excel. When I do delete the Tabs on Excel. Excel
throws out a warning are you sure you want to delete this tab. How do I turn
off the warnings? I have the security is low as it can go.

Thanks in advance for any help.
 
D

Dave Peterson

In code?

In excel, I'd use:

application.displayalerts = false
'delete the worksheet
application.displayalerts = true

If you're automating excel from access, you'll have some variable that
represents the excel application, right?

xlapp.displayalerts = false
'delete the worksheet
xlapp.displayalerts = true
 

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

Top