Re: Uups....
19.05.2003 00:35:49
L.Vira
Das glaube ich nicht. Die Zelldropdown sind wohl nicht direkt
über VBA ansprechbar aber ich hab da ein workaround gestrickt:Option Explicit
Sub Gültigkeit()
Dim VB As Range, C As Range, VF As String
On Error GoTo ENDE
Set VB = [a1].SpecialCells(xlCellTypeAllValidation)
For Each C In VB
If C.Validation.Type = 3 Then
VF = C.Validation.Formula1
If Left(VF, 1) = "=" Then
VF = Mid(VF, 2, Len(VF) - 1)
C = Range(VF).Cells(1).Value
Else
VF = Left(VF, InStr(VF, ";") - 1)
C = VF
End If
End If
Next
Set C = Nothing
Exit Sub
ENDE:
MsgBox "Keine Zellen mit Gültigkeitsprüfung gefunden ", 64, "gebe bekannt..."
End Sub