Roderick_E
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 2,051
Apparently some cells don't have any validation types set??? Thus my following code throws an error popup?
ERROR:
Runtime error 1004
Application-defined or object-defined error
I want to check for this potentiality and then do something else.
Please help. Thanks
Code:
Sub valtype()
MsgBox ActiveCell.Validation.Type
End Sub
ERROR:
Runtime error 1004
Application-defined or object-defined error
I want to check for this potentiality and then do something else.
Please help. Thanks