Microsoft
Software
Hardware
Network
Question : bypass delete verification
I want to delete alot of worksheets in a macro, and need to bypass the prompt
"Data may exist in te sheets(s) selected for deletion. To permanently delete the data, press Delete."
For I = 1 To 96
Sheets("Data" & I).Select
ActiveWindow.SelectedSheet
s.Delete
Next I
Answer : bypass delete verification
Try adding:
Application.displayalerts = False
before the loop
For safety, I would add this after the loop:
Application.displayalerts = True
Random Solutions
Printer error from Excel Documents
Preselect Checkboxlist Controls List Items based Based on matching DataTable Values
add ALL in combobox rowsource query
Think I need to convert hyperlink addresses in Access 2007 to absolute paths?
Access Database - List Column Names
Merging xfdf data into pdf with Internet Explorer Doesnt work
Excessive paging and perfmon showing pages/sec peaking at 2400
XP Restricted User and Access System.mdw Error
Microsoft's Network Security
Offline files Synchronization