Skip to content

Latest commit

 

History

History
39 lines (17 loc) · 823 Bytes

de844f58-be45-c4a6-af49-67f669abb626.md

File metadata and controls

39 lines (17 loc) · 823 Bytes

Validation.AlertStyle Property (Excel)

Returns the validation alert style. Read-only XlDVAlertStyle .

Syntax

expression . AlertStyle

expression A variable that represents a Validation object.

Remarks

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

Example

This example displays the alert style for cell E5.

MsgBox Range("e5").Validation.AlertStyle

See also

Concepts

Validation Object

Other resources

Validation Object Members