Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8526127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:11:01+00:00 2026-06-11T08:11:01+00:00

I wrote vba code to delete a sheet permanently. When i run it, comes

  • 0

I wrote vba code to delete a sheet permanently. When i run it, comes up with the following message:

“Data may exist in the sheet(s) selected for deletion. To permanently delete the data, press Delete.”

How can i write this code so that it deletes the worksheet automatically without the message popping up?

ThisWorkbook.Sheets("SVT").Delete
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T08:11:02+00:00Added an answer on June 11, 2026 at 8:11 am

    You can use:

    Application.DisplayAlerts = False
    ThisWorkbook.Sheets("SVT").Delete
    Application.DisplayAlerts = True
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following VBA code and I am getting the error message stated
I am trying to write VBA code which works on my Excel sheet. Range(A65536).End(xlUp).Row
I wrote VBA code that updates changes made in Excel to a database (SQL
Without having to write VBA code, is there a way to maybe write a
I'm am trying to write vba code to fill out web-forms and click buttons
I am trying to write an excel macro/VBA code to adjust a column's contents
I wrote some functional VBA: Sheets(Src).Range(A2:A9).Copy Destination:=Sheets(Dest).Range(A2) I want to extract the source range
I wrote a symfony task to fill a database of sample data. Here's a
Is there a macro, VBA code or VBScript that I can write to edit
We need to write an Excel spreadsheet with VBA code in it; the code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.