online 1
gast (50)

/ Forum / Skripte(PHP,ASP,Perl...)

Skripte(PHP,ASP,Perl...)Skripte(PHP,ASP,Perl...)

Fragevon Larrikin vom 01.07.2019, 21:35 Options

aktivierte ToggleButton zählen

Hallo zusammen,

ich hab da ein Problem in VBA. Ich hab einen Frame, in dem mehrere ToggleButtons sind. Nun will ich nachdem ein "normaler" button gedrückt wird zählen, wieviel ToggleButton aktiviert sind, ohne dass ich in den Code jetzt x mal reinschreib If ToggleButtonx.value = true then anzahl = anzahl + 1 (es sind 49 buttons ..)
Hat da jemand ne Lösung?
Im voraus schonmal danke.

MfG
Daniel


Antwort schreiben

Antwort 1 von kicia vom 02.07.2019, 07:05 Options

Dim c As Control
Dim anzahl As Integer
anzahl = 0
For Each c In Frame1.Controls
If c.Value Then anzahl = anzahl + 1
Next

Antwort 2 von Larrikin vom 02.07.2019, 17:40 Options

Wow .. danke für die schnelle Lösung!!

Ähnliche Themen

Änfängerfrage: COunter, zählen in wieveil zeilen x drin ist
Catze  28.06.2007 - 82 Hits - 1 Antwort

Kann Excel soetwas?
Nasic  07.08.2007 - 186 Hits - 3 Antworten

PC hängt sich nach RAM-zählen auf
TobiD  26.11.2007 - 77 Hits - 2 Antworten

Zellen zählen wenn diese UNGLEICH x und y sind
DBone  18.12.2007 - 149 Hits - 2 Antworten

Tage Zählen
Winniki  01.05.2008 - 87 Hits - 2 Antworten

Hinweis

Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum..

Neue Einträge

Version: supportware 1.9.150 / 10.06.2022, Startzeit:Thu Jan 8 21:07:44 2026