Results 1 to 4 of 4

Thread: [RESOLVED] Avoid the “Are you sure you want to delete?” question

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2005
    Posts
    61

    Resolved [RESOLVED] Avoid the “Are you sure you want to delete?” question

    Thanks to this forum I have been successful in creating a very time saving macro, now I am trying to clean it up. One thing that would make it nicer is to be able to avoid the warning “Are you sure you want to delete?” question. It pops up every time the macro deletes a worksheet, and the macro deletes a ton. Any suggestions?

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Avoid the “Are you sure you want to delete?” question

    Have a look at Application.DisplayAlerts.

    Make sure you turn it back on after your code has completed.

  3. #3
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Re: Avoid the “Are you sure you want to delete?” question

    If you're actually in an Access macro, see the SetWarnings action
    "The wise man doesn't know all the answers, but he knows where to find them."
    VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15

  4. #4

    Thread Starter
    Member
    Join Date
    Aug 2005
    Posts
    61

    Re: Avoid the “Are you sure you want to delete?” question

    DKenny, thanks for the tip

    Application.DisplayAlerts = False
    Application.DisplayAlerts = True

Posting Permissions

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



Click Here to Expand Forum to Full Width