+ Reply to Thread
Results 1 to 3 of 3

How to suppress Excel default message

  1. #1
    Sandy
    Guest

    How to suppress Excel default message

    Hello -

    I have a button that deletes a sheet. Prior to the sheet being deleted,
    Excel has a message box that pops up asking if you really want to delete it.
    I need to suppress that message. Is there a way you can keep default
    messages from displaying?

    Any help will be greatly appreciated!
    --
    Sandy

  2. #2
    Chip Pearson
    Guest

    Re: How to suppress Excel default message

    Sandy,

    Try code like

    Application.DisplayAlerts = False
    ' delete the sheet
    Application.DisplayAlerts = True


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Sandy" <[email protected]> wrote in message
    news:[email protected]...
    > Hello -
    >
    > I have a button that deletes a sheet. Prior to the sheet being
    > deleted,
    > Excel has a message box that pops up asking if you really want
    > to delete it.
    > I need to suppress that message. Is there a way you can keep
    > default
    > messages from displaying?
    >
    > Any help will be greatly appreciated!
    > --
    > Sandy




  3. #3
    Sandy
    Guest

    Re: How to suppress Excel default message

    Thanks, Chip!
    --
    Sandy


    "Chip Pearson" wrote:

    > Sandy,
    >
    > Try code like
    >
    > Application.DisplayAlerts = False
    > ' delete the sheet
    > Application.DisplayAlerts = True
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    > "Sandy" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello -
    > >
    > > I have a button that deletes a sheet. Prior to the sheet being
    > > deleted,
    > > Excel has a message box that pops up asking if you really want
    > > to delete it.
    > > I need to suppress that message. Is there a way you can keep
    > > default
    > > messages from displaying?
    > >
    > > Any help will be greatly appreciated!
    > > --
    > > Sandy

    >
    >
    >


+ 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