REAL-TIME

VBA Projects

Full Access with Source Code
  • Designed and Developed by PNRao

  • Full Access with VBA Source Code

  • Well Commented Codes Lines

  • Creative and Professional Design

Effortlessly
Manage Your Projects

120+ Project Management Templates

Seamlessly manage your projects with our powerful & multi-purpose templates for project management.

120+ PM Templates Includes:
  • 50+ Excel Templates

  • 50+ PowerPoint Templates

  • 25+ Word Templates

Share Post

DisplayAlerts Application Property in VBA has Boolean value either True or False. Default value is True. When the value is True it displays alerts and messages while running a macro. If the value is False it doesn’t display any messages or alerts. Please find the more information and syntax in the following chapter.

Excel VBA DisplayAlerts Application Property Object

VBA DisplayAlerts Application Property – Syntax

Here syntax for DisplayAlerts Property of application object in VBA.

Application. DisplayAlerts

Where DisplayAlerts as String.
In the above syntax Application represents object and DisplayAlerts is the Property of Application object.

VBA DisplayAlerts Application Property: Example 1

Please find the below example for DisplayAlerts Property of application object in excel VBA. The below example doesn’t display any alert while closing active workbook.

Sub Appl_Display_Alert_Ex2()
    'DisplayAlerts is the property of application object
    Application.DisplayAlerts = False
    ActiveWorkbook.Close
    Application.DisplayAlerts = True
End Sub 

VBA DisplayAlerts Application Property: Example 2

Please find the below example for DisplayAlerts Property of application object in excel VBA. The below example displays alerts while closing active Workbook.

Sub Appl_Display_Alert_Ex2()
    'DisplayAlerts is the property of application object
    Application.DisplayAlerts = True   ‘Optional Statement
     ActiveWorkbook.Close
End Sub

VBA DisplayAlerts Application Property – Instructions

Please follow the below steps to execute the VBA code to save the excel file.
Step 1: Open any existing Excel Application.
Step 2: Press Alt+F11 – This will open the VBA editor window.
Step 3: Insert a code module from then insert menu.
Step 4: Copy the above code and paste in the code module which have inserted in the above step.
Step 5: Now press F5 to execute the code.

Effortlessly Manage Your Projects and Resources
120+ Professional Project Management Templates!

A Powerful & Multi-purpose Templates for project management. Now seamlessly manage your projects, tasks, meetings, presentations, teams, customers, stakeholders and time. This page describes all the amazing new features and options that come with our premium templates.

Save Up to 85% LIMITED TIME OFFER
Project Management Templates

All-in-One Pack
120+ Project Management Templates

Essential Pack
50+ PM Templates

Excel Pack
50+ Excel PM Templates

PowerPoint Pack
50+ Excel PM Templates

MS Word Pack
25+ Word PM Templates

Ultimate Project
Management Template
Ultimate Resource
Management Template
Project Portfolio
Management Templates
Last Updated: March 2, 2023

Leave A Comment