Dropdown Excel vba, Kombinationsfeld ".Linkedcell"
02.04.2013 11:13:56
Sergej
Das klappt auch alles wunderbar, mein Problem ist allerdingsd, dass jedes Kombinationsfeld eine unterschiedliche Zelle für die Ausgabe bekommen soll.
Der Ausgabewert wird über den Befehl " .LinkedCell = " gesteuert. Momentan steht dort eine Zelle zum Beispil "I8". Ich möchte das allerdings von einer Variable abhängig machen, wie kann ich das machen?
Besten Dank im Voraus! Sergej
Private Sub CommandButton1_Click()
Dim i As Integer
i = 105
For i = 0 To 105
ActiveSheet.DropDowns.Add(360, i, 60, 15.75).Select
i = i + 15
With Selection
.ListFillRange = "tb_Treibhausgase"
.LinkedCell = "I8"
.DropDownLines = 4
.Display3DShading = True
End With
Next
End Sub