Live-Forum - Die aktuellen Beiträge
Datum
Titel
28.03.2024 21:12:36
28.03.2024 18:31:49
Anzeige
Archiv - Navigation
896to900
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
896to900
896to900
Aktuelles Verzeichnis
Verzeichnis Index
Verzeichnis Index
Übersicht Verzeichnisse
Inhaltsverzeichnis

OptionButton True/False

OptionButton True/False
15.08.2007 21:14:00
Rosenwasser
Hallo alle,
Wenn dass Data Formular öffnet ist keinen OptionButton (OB) Aktiv, wass richtig ist.
Einmal ein Antwort gegeben und wenn mann nach die nächste frage gegt ist schon ein OB Aktiv, wass nicht richtig ist.
Dieses ist sichtbar mit die Previous und next Button, aber auch mit die Navigator.
Wass kann gemacht werden dass die OB nur Aktiv sind wenn wirklich etwas ausgewählt würde?
https://www.herber.de/bbs/user/45107.xls
Name: Rosenwasser
Passwort: benny
Vielen Dank für die Hilfe.
Gruess,

2
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: OptionButton True/False
15.08.2007 21:45:55
Renee
Mazwara Benny,
1. Füge in Deine UF einen zusätzlichen OB ein mit Namen OpAntw0 und mach diesen .Visible = False.
2. Ersetze Deine LoadRecord() Routine mit dieser:

Private Sub LoadRecord()
'Copy values in rgData from worksheet to vaData array
vaData = rgdata.Value
'Assign array values to fmPersonal controls
txName.Value = vaData(1, 1)
txAntwA.Value = vaData(1, 3)
txAntwB.Value = vaData(1, 4)
txAntwC.Value = vaData(1, 5)
txAntwD.Value = vaData(1, 6)
OpAntwA.Value = False
OpAntwB.Value = False
OpAntwC.Value = False
OpAntwD.Value = False
OpAntw0.Value = True
OpAntwA.Visible = Not (txAntwA.Value = "")
OpAntwB.Visible = Not (txAntwB.Value = "")
OpAntwC.Visible = Not (txAntwC.Value = "")
OpAntwD.Visible = Not (txAntwD.Value = "")
txAntwA.Visible = Not (txAntwA.Value = "")
txAntwB.Visible = Not (txAntwB.Value = "")
txAntwC.Visible = Not (txAntwC.Value = "")
txAntwD.Visible = Not (txAntwD.Value = "")
Select Case vaData(1, 7)
Case "A"
OpAntwA.Value = True
Case "B"
OpAntwB.Value = True
Case "C"
OpAntwC.Value = True
Case "D"
OpAntwD.Value = True
End Select
End Sub


Greetz Renee

Anzeige
AW: OptionButton True/False
15.08.2007 22:10:16
Rosenwasser
Funktioniert Super !!
Hertzlichen Dank

Links zu Excel-Dialogen

Beliebteste Forumthreads (12 Monate)

Anzeige

Beliebteste Forumthreads (12 Monate)

Anzeige
Anzeige
Anzeige