+ Reply to Thread
Results 1 to 3 of 3

VBA block warning

  1. #1
    kokki
    Guest

    VBA block warning

    In VBA code I delete an existing worksheet.
    while doing this a warning comes and questions if you wish to delete this
    worksheet.

    How can I make that this mesage does not appear?
    thx.
    --
    kokki

  2. #2
    Norman Jones
    Guest

    Re: VBA block warning

    Hi Kokki,

    Try:

    Application.DisplayAlerts = False

    'your code to delete the sheet

    Application.DisplayAlerts = True


    ---
    Regards,
    Norman


    "kokki" <[email protected]> wrote in message
    news:[email protected]...
    > In VBA code I delete an existing worksheet.
    > while doing this a warning comes and questions if you wish to delete this
    > worksheet.
    >
    > How can I make that this mesage does not appear?
    > thx.
    > --
    > kokki




  3. #3
    kokki
    Guest

    Re: VBA block warning

    Hey Norman, thx it works.
    --
    kokki


    "Norman Jones" wrote:

    > Hi Kokki,
    >
    > Try:
    >
    > Application.DisplayAlerts = False
    >
    > 'your code to delete the sheet
    >
    > Application.DisplayAlerts = True
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    > "kokki" <[email protected]> wrote in message
    > news:[email protected]...
    > > In VBA code I delete an existing worksheet.
    > > while doing this a warning comes and questions if you wish to delete this
    > > worksheet.
    > >
    > > How can I make that this mesage does not appear?
    > > thx.
    > > --
    > > kokki

    >
    >
    >


+ 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