_Application.DisplayAlerts Propriété

Définition

Cette propriété renvoie ou définit la manière dont certains messages et alertes sont gérés pendant l'exécution d'une macro.

public:
 property Microsoft::Office::Interop::Word::WdAlertLevel DisplayAlerts { Microsoft::Office::Interop::Word::WdAlertLevel get(); void set(Microsoft::Office::Interop::Word::WdAlertLevel value); };
public Microsoft.Office.Interop.Word.WdAlertLevel DisplayAlerts { get; set; }
member this.DisplayAlerts : Microsoft.Office.Interop.Word.WdAlertLevel with get, set
Public Property DisplayAlerts As WdAlertLevel

Valeur de propriété

WdAlertLevel

Remarques

Si vous définissez cette propriété sur wdAlertsNone ou WdAlertsMessageBox, Microsoft Word ne la redéfinit pas sur wdAlertsAll lorsque l’exécution s’arrête. Vous devez écrire votre code de manière à ce qu’il redéfinisse la propriété DisplayAlerts sur wdAlertsAll lorsqu’il cesse de s’exécuter.

S’applique à