Da das so super geklappt hat habe ich noch eine Frage:
Kann dieser Code auch eleganter geschrieben werden?
Private Sub CommandButton9_Click()
ListBox1.RowSource = "Tabelle1!G2"
ListBox2.RowSource = "Tabelle1!G3"
ListBox3.RowSource = "Tabelle1!G4"
ListBox4.RowSource = "Tabelle1!G5"
ListBox5.RowSource = "Tabelle1!G6"
ListBox6.RowSource = "Tabelle1!G7"
ListBox7.RowSource = "Tabelle1!G8"
ListBox8.RowSource = "Tabelle1!G9"
ListBox9.RowSource = "Tabelle1!G10"
ListBox10.RowSource = "Tabelle1!G11"
ListBox11.RowSource = "Tabelle1!G12"
ListBox12.RowSource = "Tabelle1!G13"
ListBox13.RowSource = "Tabelle1!G14"
ListBox14.RowSource = "Tabelle1!G15"
ListBox15.RowSource = "Tabelle1!G16"
ListBox16.RowSource = "Tabelle1!G17"
ListBox17.RowSource = "Tabelle1!G18"
ListBox18.RowSource = "Tabelle1!G19"
ListBox19.RowSource = "Tabelle1!G20"
ListBox20.RowSource = "Tabelle1!G21"
ListBox21.RowSource = "Tabelle1!G22"
ListBox22.RowSource = "Tabelle1!G23"
ListBox23.RowSource = "Tabelle1!G24"
ListBox24.RowSource = "Tabelle1!G25"
End Sub
Danke vorab!!!!
|