Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macro Playback (2003)

    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

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Macro Playback (2003)

    Something like:

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

    Steve

  3. #3
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Macro Playback (2003)

    I knew it was something simple..

    [Thanks] Steve, exactly what I wanted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •