Stopping Confirmation

  • Thread starter Thread starter Atley
  • Start date Start date
A

Atley

Using VB.Net 2003 to create Excel spreadsheets using MS Excel 11.0 object
library:

When I run my app in my dev environment, I am never prompted for things
like deleting sheets or saving files, but when I release it (with reference
DLLs copied local set to true) I am prompted for all of these events...

Is there a way to turn this off? or at least auto answer them?
 
Atley said:
Using VB.Net 2003 to create Excel spreadsheets using MS Excel 11.0 object
library:

When I run my app in my dev environment, I am never prompted for things
like deleting sheets or saving files, but when I release it (with
reference
DLLs copied local set to true) I am prompted for all of these events...

Is there a way to turn this off? or at least auto answer them?

\\\
With Application
.DisplayAlerts = False
ThisWorkbook.SaveAs("D:\file.xls")
.DisplayAlerts = True
End With
///
 

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