+ Reply to Thread
Results 1 to 3 of 3

Msgbox after sheets are deleted

  1. #1
    Registered User
    Join Date
    06-22-2004
    Posts
    6

    Msgbox after sheets are deleted

    Hi Guys,

    I have a macro that deletes a bunch of worksheets when it is run and Excel pops up a msgbox after each sheet asking if I'm sure I want to delete the worksheet. Is there a way to turn this off? Or is there some code that will automatically click the okay button so that the user wont have to?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    03-03-2005
    Posts
    315
    Insert at the appropriate line:

    Application.DisplayAlerts=False

    (remember to restore before Exit Sub by setting command to True)

  3. #3
    Registered User
    Join Date
    06-22-2004
    Posts
    6
    Thanks! I figured it was something simple.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1