wie kann ich abfragen ob eine Zelle eine Gültigkeit hat?
Mit
Range("L24").Validation= True
geht es leider nicht.
Danke Euch
Steffen Schmerler
Dim boValidation As Boolean
On Error Resume Next
boValidation = Range("L24").Validation.Type > 0
On Error GoTo 0
If boValidation Then
MsgBox "Zelle hat eine Gültigkeitsprüfung"
Else
MsgBox "Zelle hat keine Gültigkeitsprüfung"
End If
Gruß TinoDim boValidation As Boolean
On Error Resume Next
boValidation = Range("L24").Validation.Type >= 0
On Error GoTo 0
If boValidation Then
MsgBox "Zelle hat eine Gültigkeitsprüfung"
Else
MsgBox "Zelle hat keine Gültigkeitsprüfung"
End If
Gruß Tino