Live-Forum - Die aktuellen Beiträge
Anzeige
Archiv - Navigation
756to760
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
756to760
756to760
Aktuelles Verzeichnis
Verzeichnis Index
Verzeichnis Index
Übersicht Verzeichnisse
Inhaltsverzeichnis

CommandButton in Abhängigkeit von TextBox-Eintrag

CommandButton in Abhängigkeit von TextBox-Eintrag
21.04.2006 15:59:09
TextBox-Eintrag
Hallo liebe Excel-Fans,
ich habe folgendes Problem:
Ich lasse in Textboxen einer Userform verschiedene Werte abfragen und habe einen CommandButton standardmäßig auf .Enable = False gesetzt.
Frage 1: Wie kann ich bei 5 Textboxen den cmd erst auf .Enable = True setzen,
wenn in allen Textboxen Werte eingetragen sind?
Frage 2: In welches Modul muss ich dies setzen? (evtl. UF_Initialize)?
Frage 3 noch nebenbei: Wie kann ich Checkboxen wieder bereinigen?
mit "CheckBox1.Value = False" klappt es nicht
Danke für Hilfe.
Viele Grüße
Oki

24
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
21.04.2006 16:27:54
TextBox-Eintrag
Hallo Oki,
in das Klassenmodul des UserForm(ulars) - anklicken, Code anzeigen, code einfügen.
Option Explicit

Private Sub TextBox5_Change()
If TextBox1.Value <> "" And _
TextBox2.Value <> "" And _
TextBox3.Value <> "" And _
TextBox4.Value <> "" And _
TextBox5.Value <> "" Then
CommandButton1.Enabled = True
End If
End Sub


Private Sub UserForm_Activate()
CommandButton1.Enabled = False
End Sub

Viele Grüße Peter
Eine kurze Nachricht, ob es läuft, wäre nett - danke.
Anzeige
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
21.04.2006 16:37:46
TextBox-Eintrag
Hallo Oki,
Frage 3 habe ich vergessen - z. B. so: CheckBox1.Value = True oder False
Viele Grüße Peter
Eine kurze Nachricht, ob es läuft, wäre nett - danke.
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
21.04.2006 17:14:07
TextBox-Eintrag
Hallo Peter,
danke für Deine Antwort.
Frage 1: klappt wunderbar, der cmd wird erst aktiv, wenn die Textboxen gefüllt sind
Frage 2: bestens
Frage 3: klappt nicht. Fehlermeldung: "Objekt erforderlich"
An was kann dies liegen?
Gruß Andreas
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
21.04.2006 17:49:47
TextBox-Eintrag
Hallo Andreas,
bei mir funktioniert das - siehe Beispiel-Mappe.
https://www.herber.de/bbs/user/33025.xls
Viele Grüße Peter
Eine kurze Nachricht, ob es läuft, wäre nett - danke.
Anzeige
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:14
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:39
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:39
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:40
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:40
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:40
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:41
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:41
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
Anzeige
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:41
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:42
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:42
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:43
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:43
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:43
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:35:44
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:34:29
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
Anzeige
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:34:37
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:34:38
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:34:39
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki
AW: CommandButton in Abhängigkeit von TextBox-Eintrag
25.04.2006 09:34:40
TextBox-Eintrag
Hallo Peter,
der Code passt. Läuft alles super. Danke.
Viele Grüße Oki

300 Forumthreads zu ähnlichen Themen

Anzeige
Anzeige
Anzeige

Links zu Excel-Dialogen

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige