Live-Forum - Die aktuellen Beiträge
Anzeige
Archiv - Navigation
628to632
Aktuelles Verzeichnis
Verzeichnis Index
Übersicht Verzeichnisse
Vorheriger Thread
Rückwärts Blättern
Nächster Thread
Vorwärts blättern
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
628to632
628to632
Aktuelles Verzeichnis
Verzeichnis Index
Verzeichnis Index
Übersicht Verzeichnisse
Inhaltsverzeichnis

TextBox in UserForm durchblättern

TextBox in UserForm durchblättern
24.06.2005 12:28:48
Ducky
Hallo zusammen,
ich verzweifle gerade daran, dass die über eine UserForm erfassten und in eine Tabelle geschriebenen Daten sich nicht mit der selben UserForm durchblättern lassen. Beim Blättern sollten Änderungen noch möglich sein.
Kann mir jemand bei diesem Problem helfen?
Vielen Dank im Voraus
Ducky

7
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: TextBox in UserForm durchblättern
24.06.2005 17:22:35
Hajo_Zi
Hallo Ducky,
Deine Beispieldatei wäre schon mal nicht schlecht.
Bitte keine Mail, Probleme sollten im Forum gelöst werden.
Microsoft MVP für Excel
Das Forum lebt auch von den Rückmeldungen.
Betriebssystem XP Home SP2 und Excel Version 2003 SP1.


AW: TextBox in UserForm durchblättern
24.06.2005 17:47:58
Ducky
Ich habe mal die Datei dazu hochgeladen.
https://www.herber.de/bbs/user/24170.xls
Aber ich kriege einfach nicht hin, dass die schon geschriebenen Zeilen einfach nochmal durchblättert und editiert werden können.
Wenn Ihr mir helfen könntet wäre das echt super.
Grüße
Ducky
Anzeige
AW: TextBox in UserForm durchblättern
24.06.2005 18:11:32
Hajo_Zi
Hallo Ducky,
1. vom Grundsatz sollte man unbedingt eine Variblen Defition durchführen (erste Zeile im Code Option Explicit)
2. Bei Einsatz der Tag eigenschaft könnte man bestimmt 50% des Codes einsparen.

Dim LoZeile As Long
Private Sub CommandButton5_Click()
'   Vor
Dim LoLetzte As Long
LoLetzte = IIf(IsEmpty(Range("A65536")), Range("A65536").End(xlUp).Row, 65536)
If LoZeile < LoLetzte Then
LoZeile = LoZeile + 1
TextBox2.Value = Cells(LoZeile, 1)
TextBox3.Value = Cells(LoZeile, 2)
TextBox4.Value = Cells(LoZeile, 3)
TextBox5.Value = Cells(LoZeile, 4)
TextBox6.Value = Cells(LoZeile, 5)
TextBox7.Value = Cells(LoZeile, 6)
TextBox8.Value = Cells(LoZeile, 7)
TextBox9.Value = Cells(LoZeile, 8)
TextBox10.Value = Cells(LoZeile, 9)
TextBox12.Value = Cells(LoZeile, 11)
TextBox31.Value = Cells(LoZeile, 14)
TextBox15.Value = Cells(LoZeile, 15)
TextBox16.Value = Cells(LoZeile, 16)
TextBox17.Value = Cells(LoZeile, 17)
TextBox18.Value = Cells(LoZeile, 18)
TextBox19.Value = Cells(LoZeile, 19)
TextBox20.Value = Cells(LoZeile, 20)
TextBox21.Value = Cells(LoZeile, 21)
TextBox22.Value = Cells(LoZeile, 22)
TextBox30.Value = Cells(LoZeile, 23)
TextBox23.Value = Cells(LoZeile, 24)
TextBox24.Value = Cells(LoZeile, 25)
TextBox26.Value = Cells(LoZeile, 26)
TextBox27.Value = Cells(LoZeile, 27)
TextBox28.Value = Cells(LoZeile, 28)
TextBox32.Value = Cells(LoZeile, 29)
Else
MsgBox "kein Datensatz mehr vohanden"
End If
End Sub
Private Sub CommandButton6_Click()
'Programmierung der ZURÜCK-Taste
LoZeile = LoZeile - 1
If LoZeile <= 2 Then
MsgBox "kein Datensatz mehr vohanden"
Else
TextBox2.Value = Cells(LoZeile, 1)
TextBox3.Value = Cells(LoZeile, 2)
TextBox4.Value = Cells(LoZeile, 3)
TextBox5.Value = Cells(LoZeile, 4)
TextBox6.Value = Cells(LoZeile, 5)
TextBox7.Value = Cells(LoZeile, 6)
TextBox8.Value = Cells(LoZeile, 7)
TextBox9.Value = Cells(LoZeile, 8)
TextBox10.Value = Cells(LoZeile, 9)
TextBox12.Value = Cells(LoZeile, 11)
TextBox31.Value = Cells(LoZeile, 14)
TextBox15.Value = Cells(LoZeile, 15)
TextBox16.Value = Cells(LoZeile, 16)
TextBox17.Value = Cells(LoZeile, 17)
TextBox18.Value = Cells(LoZeile, 18)
TextBox19.Value = Cells(LoZeile, 19)
TextBox20.Value = Cells(LoZeile, 20)
TextBox21.Value = Cells(LoZeile, 21)
TextBox22.Value = Cells(LoZeile, 22)
TextBox30.Value = Cells(LoZeile, 23)
TextBox23.Value = Cells(LoZeile, 24)
TextBox24.Value = Cells(LoZeile, 25)
TextBox26.Value = Cells(LoZeile, 26)
TextBox27.Value = Cells(LoZeile, 27)
TextBox28.Value = Cells(LoZeile, 28)
TextBox32.Value = Cells(LoZeile, 29)
End If
End Sub
Private Sub UserForm_initialize()
'hier wird die Combo-Box mit den BS-Werten gefüllt
With ComboBox1
.AddItem "Januar "
.AddItem "Februar "
.AddItem "März "
.AddItem "April "
.AddItem "Mai "
.AddItem "Juni "
.AddItem "Juli "
.AddItem "August "
.AddItem "September "
.AddItem "Oktober "
.AddItem "November "
.AddItem "Dezember "
End With
LoZeile = 3
End Sub

Gruß Hajo
Das Forum lebt auch von den Rückmeldungen.
Anzeige
AW: TextBox in UserForm durchblättern
27.06.2005 08:17:10
Ducky
Hallo Hajo,
danke für den Vorschlag. Ich habe den Code ausprobiert. Aber leider springt das Formular beim drücken der VOR-Taste jetzt einfach in die zweite Zeile und verharrt dort.
Beim Drücken der ZURÜCK-Taste gibt Excel immer nur die MsgBox aus. Es geschieht nichts anderes.
Kann mir bitte jemand helfen? Ich komme hier echt nicht weiter.
Grüße
Ducky
AW: TextBox in UserForm durchblättern
27.06.2005 20:39:12
Hajo_Zi
Hallo Ducky,
Drücke mal die andere Taste.
Ich bin der Auffasung das Internet ist ein schnelles Medium und dieses Forum ist besonders schnell. Nach einer gewissen Zeit habe ich das Problem abgeschrieben. Ich hatte mich bei der Erstellung der Lösung in das Problem eingearbeitet und auch die Lösung getestet. Diese Arbeite wiederhole ich nicht nachj paar Tagen ohne Reaktion noch mal.
Gruß Hajo
Das Forum lebt auch von den Rückmeldungen.
Anzeige
AW: TextBox in UserForm durchblättern
28.06.2005 08:27:31
Ducky
Hallo Hajo,
dieses Forum ist wahnsinnig schnell und ich finde in 99,9% aller Fälle auch in zwei Minuten was ich brauche (großes Lob), aber dieses Wochenende kam privater Umzug (vorerst kein Tel. und DSL zuhause) und Büroumzug mir in die Quere, deshalb die ewig lange Reaktionszeit.
Aber irgendwie will die Vor- und Zurück-Programmierung leider nicht funktionieren.
Vielen Dank für die bisher geleistete Hilfe.
Grüße
Ducky
AW: TextBox in UserForm durchblättern
24.06.2005 17:23:18
Beni
Hallo Ducky,
sicher ist das möglich, ich brauche nur ein bisschen Angaben.
Gruss Beni

Links zu Excel-Dialogen

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige