94451
Oct 05, 2016
1912
3
0
Auswahlliste mit variablen
Hallo,
ich möchte in VBA eine Liste generieren... möchte hier aber nicht den Umweg über die Tabelle nehmen
das hier Funktioniert:
wenn ich aber statt
z.B.
verwende geht das nicht?
wie geh ich das richtig an???
Danke
ich möchte in VBA eine Liste generieren... möchte hier aber nicht den Umweg über die Tabelle nehmen
das hier Funktioniert:
With Selection.Validation
.Delete
.Add Type:=xlValidateList, AlertStyle:=xlValidAlertStop, Operator:= _
xlBetween, Formula1:="Wert 1;Wert 2"
.IgnoreBlank = True
.InCellDropdown = True
.InputTitle = ""
.ErrorTitle = ""
.InputMessage = ""
.ErrorMessage = ""
.ShowInput = True
.ShowError = True
End With
wenn ich aber statt
Formula1:="Wert 1;Wert 2"
z.B.
variable = "Wert 1;Wert 2"
Formula1:=variable
Formula1:=variable
verwende geht das nicht?
wie geh ich das richtig an???
Danke
Please also mark the comments that contributed to the solution of the article
Content-Key: 316879
Url: https://administrator.de/contentid/316879
Printed on: April 23, 2024 at 19:04 o'clock
3 Comments
Latest comment