constant that represents whether Microsoft PowerPoint displays alerts while running a macro. Read/write.
PpAlertLevel can be one of these PpAlertLevel constants. |
ppAlertsAll All message boxes and alerts are displayed; errors are returned to the macro. |
ppAlertsNone Default. No alerts or message boxes are displayed. If a macro encounters a message box, the default value is chosen and the macro continues. |
expression.DisplayAlerts
expression Required. An expression that returns an Application object.
Remarks
The value of the DisplayAlerts property is not reset once a macro stops running; it is maintained throughout a session. It is not stored across sessions, so when PowerPoint begins, it reset to ppAlertsNone.
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