Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 1.53 KB

PowerPoint.Application.DisplayAlerts.md

File metadata and controls

63 lines (35 loc) · 1.53 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.DisplayAlerts property (PowerPoint)
vbapp10.chm502050
vbapp10.chm502050
PowerPoint.Application.DisplayAlerts
e18cf1f5-c456-8cd5-40e7-eec69c40811d
06/08/2017
medium

Application.DisplayAlerts property (PowerPoint)

Sets or returns whether Microsoft PowerPoint displays alerts while running a macro. Read/write.

Syntax

expression. DisplayAlerts

expression A variable that represents an Application object.

Return value

PpAlertLevel

Remarks

The value of the DisplayAlerts property is not reset once a macro stops running; it is maintained throughout a session. It's not stored across sessions, so when PowerPoint begins, it is reset to ppAlertsNone.

The value of the DisplayAlerts property can be one of these PpAlertLevel constants.

Constant Description
ppAlertsAll All message boxes and alerts are displayed; errors are returned to the macro.
ppAlertsNone The default. No alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues.

Example

The following line of code instructs PowerPoint to display all message boxes and alerts, returning errors to the macro.

Sub SetAlert

    Application.DisplayAlerts = ppAlertsAll

End Sub

See also

Application Object

[!includeSupport and feedback]