+ Reply to Thread
Results 1 to 3 of 3

Removal of standard Delete msg from within VBA

  1. #1
    Darin Kramer
    Guest

    Removal of standard Delete msg from within VBA

    Hi guys,

    My macro creats a new sheet, and also deletes the old sheet. I want to
    NOT show the message "Data my exist in the sheet(s) selected for
    Deletion. To permanently delete the data press delete", but it shows
    when I give the delte command.

    Any ideas?

    Thanks

    D

    *** Sent via Developersdex http://www.developersdex.com ***

  2. #2
    Tom Ogilvy
    Guest

    Re: Removal of standard Delete msg from within VBA

    Application.DisplayAlerts = False
    worksheets(1).Delete
    Application.DisplayAlerts = True

    --
    Regards,
    Tom Ogilvy


    "Darin Kramer" <[email protected]> wrote in message
    news:[email protected]...
    > Hi guys,
    >
    > My macro creats a new sheet, and also deletes the old sheet. I want to
    > NOT show the message "Data my exist in the sheet(s) selected for
    > Deletion. To permanently delete the data press delete", but it shows
    > when I give the delte command.
    >
    > Any ideas?
    >
    > Thanks
    >
    > D
    >
    > *** Sent via Developersdex http://www.developersdex.com ***




  3. #3
    Vobiscum
    Guest

    Re: Removal of standard Delete msg from within VBA


    hi,

    Try with

    Sub test()
    Application.DisplayAlerts = False
    Sheets("sheet1").Delete
    Application.DisplayAlerts = True
    End Sub


    Rgds,

    vobiscum


    --
    Vobiscum
    ------------------------------------------------------------------------
    Vobiscum's Profile: http://www.msusenet.com/member.php?userid=2459
    View this thread: http://www.msusenet.com/t-1870567306


+ 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