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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,128
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
  3. Web
Aye

Just pop

Code:
Application.DisplayAlerts = False

Before that event

Then

Code:
Application.DisplayAlerts = True

After the event

HTH


Dave
 
Upvote 0

rmfrase

Board Regular
Joined
Jul 6, 2006
Messages
128
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

dave3009

Well-known Member
Joined
Jun 23, 2006
Messages
7,128
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Mobile
  3. Web
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,191,213
Messages
5,985,300
Members
439,956
Latest member
FrazzledCat

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
Top