DisplayAlert Property

Microsoft Office Web Components Visual Basic

constant that indicates whether or not an alert will be displayed when the BeforeDelete and BeforeOverwrite events are called. Read/write.

expression.DisplayAlert

expression    Required. An expression that returns a DSCEventInfo object.

Example

The following example uses the DisplayAlert property in the BeforeOverwrite event to prevent the user from being prompted to overwrite an existing file when the ExportXML method is called.

Sub MSODSC_BeforeOverwrite(DSCEventInfo)

   Dim dscConstants
   Set dscConstants = MSODSC.Constants

   ' Don't alert the user when overwriting an existing file.
   DSCEventInfo.DisplayAlert = dscConstants.dscDataAlertContinue

End Sub