Syntax

expression.AlertStyle

expression A variable that represents a Validation object.

Remarks

Use the method to set the alert style for a range. If the range already has data validation, use the method to change the alert style.

Example

This example displays the alert style for cell E5.

Visual Basic for Applications
MsgBox Range("e5").Validation.AlertStyle
access alert style range alert style Alert Style Property AlertStyle alertstyle property find out alert style cell return validation alert style

See also: