• I don’t like the confirmation dialog…Can I kill (Excel 2002)

    Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » I don’t like the confirmation dialog…Can I kill (Excel 2002)

    Author
    Topic
    #381550

    I am trying to run the following an a macro in Excel and it pops up a dilog asking for confirmation.

    Sheets("Written Instructions").Delete

    Can I turn off the dialogs in Excel similar to DoCmd.SetWarnings False in Access?

    Viewing 1 reply thread
    Author
    Replies
    • #643530

      Use

      Application.DisplayAlerts = False
      Sheets(“Written Instructions”).Delete
      Application.DisplayAlerts = True

      Andrew C

      • #643541

        Man…

        For the first time ever I think I used the object browser and saw Application.Dialogs but somehow missed .DisplayAlerts

        Thanks for the assistance!!

    • #643531

      Application.DisplayAlerts = False

      Remember to reset to True; I think that is default when the routine is exited.

    Viewing 1 reply thread
    Reply To: I don’t like the confirmation dialog…Can I kill (Excel 2002)

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

    Your information: