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

Delete Excel Sheet 1

Status
Not open for further replies.

Rougy

Programmer
Oct 15, 2001
249
0
0
US
Hi,

I need to delete an excel sheet.

xlapp.sheets(1).delete (something goes here I think)

does anybody know the command for either dodging, disabling, or answering the excel dialog box that pops up and asks to confirm the delete?

Thanks,

Rougy -----
The death of dogma is the birth of reason.
 
Found it.

XLApp.DisplayAlerts = False
XLApp.Sheets(1).Delete
XLApp.DisplayAlerts = True -----
The death of dogma is the birth of reason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top