Thema Datum  Von Nutzer Rating
Antwort
26.07.2016 11:04:49 vbanob
NotSolved
Blau Probleme beim Abspeichern in der Maske - nochmal ausführlich
26.07.2016 12:34:33 Crazy Tom
NotSolved
26.07.2016 12:45:59 Crazy Tom
NotSolved
26.07.2016 13:23:07 Gast3887
NotSolved
26.07.2016 13:24:04 vbanob
NotSolved
26.07.2016 13:38:13 Crazy Tom
NotSolved
26.07.2016 14:40:36 Crazy Tom
NotSolved
26.07.2016 14:46:49 Gast45420
NotSolved
26.07.2016 15:01:11 vbanob
NotSolved
26.07.2016 15:05:34 Crazy Tom
NotSolved
26.07.2016 16:01:37 Gast56745
Solved
27.07.2016 11:58:37 Gast63605
NotSolved

Ansicht des Beitrags:
Von:
Crazy Tom
Datum:
26.07.2016 12:34:33
Views:
804
Rating: Antwort:
  Ja
Thema:
Probleme beim Abspeichern in der Maske - nochmal ausführlich

Hi

warum hast du in diesem Code

Private Sub ListBox1_Click()
    Dim Spalte As Integer, zeile As Long
    Spalte = 3
    zeile = (ListBox1.ListIndex + 2)
    With Worksheets(1)
        Me.TextBox3 = .Cells(zeile, Spalte)
        Me.TextBox4 = .Cells(zeile, Spalte + 1)
        Me.TextBox5 = .Cells(zeile, Spalte + 2)
        Me.TextBox6 = .Cells(zeile, Spalte + 3)
        Me.TextBox7 = .Cells(zeile, Spalte + 4)
        Me.TextBox8 = .Cells(zeile, Spalte + 5)
        Me.TextBox9 = .Cells(zeile, Spalte + 6)
        Me.TextBox10 = .Cells(zeile, Spalte + 7)
        Me.TextBox11 = .Cells(zeile, Spalte + 8)
        Me.TextBox14 = .Cells(zeile, Spalte + 11)
        Me.TextBox17 = .Cells(zeile, Spalte + 14)
        Me.TextBox18 = .Cells(zeile, Spalte + 15)
        Me.TextBox19 = .Cells(zeile, Spalte + 16)
        Me.TextBox30 = .Cells(zeile, Spalte + 27)
        Me.TextBox32 = .Cells(zeile, Spalte + 29)
        Me.TextBox33 = .Cells(zeile, Spalte + 30)
        Me.TextBox34 = .Cells(zeile, Spalte + 31)
        Me.TextBox35 = .Cells(zeile, Spalte + 32)
        Me.TextBox36 = .Cells(zeile, Spalte + 33)
        Me.TextBox37 = .Cells(zeile, Spalte + 34)
        Me.TextBox38 = .Cells(zeile, Spalte + 35)
        Me.TextBox39 = .Cells(zeile, Spalte + 36)
        Me.TextBox40 = .Cells(zeile, Spalte + 37)
        Me.TextBox41 = .Cells(zeile, Spalte + 38)
        Me.TextBox42 = .Cells(zeile, Spalte + 39)
        Me.TextBox43 = .Cells(zeile, Spalte + 40)
        Me.TextBox44 = .Cells(zeile, Spalte + 41)
    End With
'    Call FillListBox
End Sub

noch mal das Call FillListBox drin?

damit wird die Listbox neu gefüllt und dann ist der Listindex automatisch wieder -1

obwohl noch ein Eintrag angeklickt ist

ich habe es einmal auskommentiert und dann speichert es den Datensatz in der richtigen Zeile

MfG Tom


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
26.07.2016 11:04:49 vbanob
NotSolved
Blau Probleme beim Abspeichern in der Maske - nochmal ausführlich
26.07.2016 12:34:33 Crazy Tom
NotSolved
26.07.2016 12:45:59 Crazy Tom
NotSolved
26.07.2016 13:23:07 Gast3887
NotSolved
26.07.2016 13:24:04 vbanob
NotSolved
26.07.2016 13:38:13 Crazy Tom
NotSolved
26.07.2016 14:40:36 Crazy Tom
NotSolved
26.07.2016 14:46:49 Gast45420
NotSolved
26.07.2016 15:01:11 vbanob
NotSolved
26.07.2016 15:05:34 Crazy Tom
NotSolved
26.07.2016 16:01:37 Gast56745
Solved
27.07.2016 11:58:37 Gast63605
NotSolved