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
Unable to install anti-virus programs, and other programs also
VBA - Get UserName
Can't write to C Drive on Windows server 2008
This message has not been sent.
net send
Excel - formula to calculate values on an offset array
Need Help with SQL Query
Autocomplete a cell based on the update of another cells contents
Sporadic Numeric field overflow
Sumproduct in VB