VBA Forced Sheet2 Deletion without having to Answer Popup

rmfrase

Board Regular
Joined
Jul 6, 2006
Messages
128
Is there a way to Force Delete a worksheet in VBA, but yet not have to respond to the quesiton of:

"Data May Exist in the sheet(s) selected for Deletion. To perminately Delete the Data, Press Delete."




Thanks.
Robert
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Aye

Just pop

Code:
Application.DisplayAlerts = False

Before that event

Then

Code:
Application.DisplayAlerts = True

After the event

HTH


Dave
 
Upvote 0
Thank you both so very much - I never knew. I'd like to find a complete listing sometime of all of the Excel VBA Commands.

That way I wouldn't have to keep asking all of these questions...

-Robert
 
Upvote 0
Never be afraid to ask, debate on an issue can provide a range of excellent answers to provide a superb educational resource to those searching for answers
 
Upvote 0

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top