+ Reply to Thread
Results 1 to 2 of 2

prevent warning message from appearing

  1. #1
    Tijmen
    Guest

    prevent warning message from appearing

    I want to remove a sheet

    Sheets(2).Delete

    Excel then comes up with a warning: "The selected sheet(s) will be
    permananently deleted. To delete the selected sheets, click OK.To cancel the
    deletion, click Cancel"

    Can I somehow catch this message end prevent it from appearing?

    Thanks,

    Tijmen



  2. #2
    Nick Hodge
    Guest

    Re: prevent warning message from appearing

    Tijmen

    Application.DisplayAlerts = False

    Set to True at end of code or any error code that may exit the code
    prematurely

    --
    HTH
    Nick Hodge
    Microsoft MVP - Excel
    Southampton, England
    www.nickhodge.co.uk
    [email protected]HIS


    "Tijmen" <[email protected]> wrote in message
    news:[email protected]...
    >I want to remove a sheet
    >
    > Sheets(2).Delete
    >
    > Excel then comes up with a warning: "The selected sheet(s) will be
    > permananently deleted. To delete the selected sheets, click OK.To cancel
    > the deletion, click Cancel"
    >
    > Can I somehow catch this message end prevent it from appearing?
    >
    > Thanks,
    >
    > Tijmen
    >




+ 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