Thema Datum  Von Nutzer Rating
Antwort
17.07.2016 16:17:09 vbanob1
NotSolved
19.07.2016 01:01:50 Günther
NotSolved
19.07.2016 15:08:17 Gast65425
NotSolved
19.07.2016 15:48:46 Günther
NotSolved
19.07.2016 20:22:33 Gast48058
NotSolved
19.07.2016 22:58:26 Gast32179
NotSolved
20.07.2016 13:36:12 vbanob1
NotSolved
21.07.2016 16:06:39 vbanob1
NotSolved
Rot Probleme bei Abspeichern in Maske
20.07.2016 22:40:11 Günther
NotSolved
25.07.2016 18:14:05 vbanob1
NotSolved
25.07.2016 18:20:50 Gast53393
NotSolved
25.07.2016 18:37:00 Gast3481
NotSolved

Ansicht des Beitrags:
Von:
Günther
Datum:
20.07.2016 22:40:11
Views:
766
Rating: Antwort:
  Ja
Thema:
Probleme bei Abspeichern in Maske

Puh, war nicht leicht zu finden ...

Option Explicit

Private Sub UserForm_Activate()
    Call FillListBox
End Sub

Sub FillListBox()
    Dim lRow As Long, Ze As Long, Anz As Long, Pos As Long, x As Variant
    With ListBox1
        .RowSource = vbNullChar
        Anz = .ListCount
        lRow = Sheets("0_Stammd_FLA").Cells(Rows.Count, 3).End(xlUp).Row
        For Ze = 2 To lRow
            Me.ListBox1.AddItem (Sheets("0_Stammd_FLA").Cells(Ze, 3))
        Next Ze
    End With
End Sub

Private Sub ComboBox1_Click()
    Spalte = 21
    Zeile = (ComboBox1.ListIndex + 2)
End Sub


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

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

Private Sub CommandButton2_Click()
    Unload UserForm1
End Sub

So sollte es gehen. Und ab jetzt dürfen sich Helfer-Kollegen damit beschäftigen, wenn noch etwas nicht klappt (was gewiss kommt).

 

Gruß

Günther


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
17.07.2016 16:17:09 vbanob1
NotSolved
19.07.2016 01:01:50 Günther
NotSolved
19.07.2016 15:08:17 Gast65425
NotSolved
19.07.2016 15:48:46 Günther
NotSolved
19.07.2016 20:22:33 Gast48058
NotSolved
19.07.2016 22:58:26 Gast32179
NotSolved
20.07.2016 13:36:12 vbanob1
NotSolved
21.07.2016 16:06:39 vbanob1
NotSolved
Rot Probleme bei Abspeichern in Maske
20.07.2016 22:40:11 Günther
NotSolved
25.07.2016 18:14:05 vbanob1
NotSolved
25.07.2016 18:20:50 Gast53393
NotSolved
25.07.2016 18:37:00 Gast3481
NotSolved