Re: Listbox ...
18.09.2002 17:46:32
Chris
E-Mail mit Beispiel unterwegs.Wenn du VBA Listbox nimmst, machst du folgende Listbox_Change Ereignisprozedur:
Private Sub ListBox1_Change()
If ListBox1.Value = "A" Then ActiveSheet.Cells(4, 6).Formula = "10"
If ListBox1.Value = "B" Then ActiveSheet.Cells(4, 6).Formula = "20"
If ListBox1.Value = "C" Then ActiveSheet.Cells(4, 6).Formula = "30"
If ListBox1.Value = "D" Then ActiveSheet.Cells(4, 6).Formula = "40"
If ListBox1.Value = "E" Then ActiveSheet.Cells(4, 6).Formula = "50"
End Sub
Falls du Formular Listbox benutzt; Ergebnis ueber SVERWEIS auswerten (d.h. Liste mit Namen und Werten hinterlegen).
Gruss
Chris