• Macro Playback (2003)

    • This topic has 2 replies, 2 voices, and was last updated 17 years ago.
    Author
    Topic
    #450395

    I have recorded a macro which involves deleting a worksheet. When executing the macro,a warning box appears that states:

    Data may exist in the sheet(s) selected for deletion. To permanently delete the data, press delete. Can I stop this appearing upon execution?

    Thanks
    Nathan

    Viewing 0 reply threads
    Author
    Replies
    • #1106379

      Something like:

      Application.displayalerts = false
      worksheets(1).delete
      Application.displayalerts = true

      Steve

      • #1106381

        I knew it was something simple..

        [Thanks] Steve, exactly what I wanted.

    Viewing 0 reply threads
    Reply To: Macro Playback (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: