Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to test if a cell is validated using a list. However,
the Validation property does not exist by default - it seems that only validated cells have this property. The code below, therefore, results in a "Application-defined or object-defined error" when you change the value of a non-validated cell. I would be grateful to know what the best way to run this test is. I guess you could use 'On Error', although this seems hacky. Many thanks Jon Private Sub Worksheet_Change(ByVal Target As Range) If Target.Validation.Type = xlValidateList Then MsgBox "Do something" End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Modify the IgnoreBlank property of the Validation object | Excel Programming | |||
Range Validation property not working w/ Protected worksheet | Excel Programming | |||
Validation Testing through list | Excel Programming | |||
Formula1 Property of Validation Object to refer to function name | Excel Programming | |||
Testing for Cell Validation | Excel Programming |