Probleme mit Automatisierung von Gültigkeiten
Gültigkeiten
ich bekomme ständig Probleme mit meiner Automatisierung der Gültigkeit. Ich weiß auch nicht woran es liegt bei mir läuft es einfach nicht. Ich bekomme immer Laufzeit oder sonstige Fehler. Wäre nett, wenn ihr einmal rein schauen würdet.
Range(Cells(1, 16), Cells(65536, 16)).Validation.Delete
For v = 2 To 50
If Cells(v, 15) = "" Then
Cells(v, 15) = "A1"
End If
mystring = "=Indirect($O" & v & ")"
With Cells(v, 16).Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:=mystring
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
If Cells(v, 15) = "A1" Then
Cells(v, 15) = ""
End If
Next v
Range(Cells(51, 16), Cells(65536, 16)).Validation.Delete
https://www.herber.de/bbs/user/65263.xls
Liebe grüße bereits im voraus
euer Heiti