ich habe ein Makro in einer Userform mit Listbox, es wird ein Laufzeitfehler
angezeigt.
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
TextBox1.Value = ListBox1.List(Me.ListBox1.ListIndex, 0) 'lf. Nr. rein
TextBox2.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 1), "dd.mm.yyyy") ' EK _
Datum
TextBox3.Value = ListBox1.List(Me.ListBox1.ListIndex, 2) 'Lieferant
TextBox4.Value = ListBox1.List(Me.ListBox1.ListIndex, 3) 'Marke
TextBox5.Value = ListBox1.List(Me.ListBox1.ListIndex, 4) 'Marken für Standtage
TextBox6.Value = ListBox1.List(Me.ListBox1.ListIndex, 5) 'Typ
TextBox7.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 6), "###,###,###") 'Stamm _
Nr.
TextBox8.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 7), "##,###.##") ' EURO _
MWST
TextBox9.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 8), "##,###.##") ' _
Firmenname
TextBox10.Value = ListBox1.List(Me.ListBox1.ListIndex, 9)
TextBox11.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 10), "dd.mm.yyyy") 'datum _
verkauf
TextBox12.Value = ListBox1.List(Me.ListBox1.ListIndex, 11) 'standtage ist
TextBox13.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 12), "##,###.##") ' _
Erlös mit mwst
TextBox14.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 13), "##,###.##") 'mwst
TextBox15.Value = Format(ListBox1.List(Me.ListBox1.ListIndex, 14), "##,###.##") ' _
Nettoerlös
TextBox16.Value = ListBox1.List(Me.ListBox1.ListIndex, 15) 'noch nicht belegt
TextBox17.Value = ListBox1.List(Me.ListBox1.ListIndex, 16) 'käufer
TextBox18.Value = ListBox1.List(Me.ListBox1.ListIndex, 17) 'wert eintausch
TextBox19.Value = ListBox1.List(Me.ListBox1.ListIndex, 18) 'bemerkung
bleibt hier stehen, Eigenschaft List konnte nicht abgerufen werden.!!!!
FundZeile = ListBox1.List(Me.ListBox1.ListIndex, 19)
CommandButton1.Enabled = False ' den Übernehmen-Button sperren
CommandButton3.Enabled = True ' den Ändern-Button freigeben
CommandButton4.Enabled = True ' den Löschen-Button freigeben
gruß
walter b
End Sub