Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CheckBox-Status in Excel mit VBA auslesen

Empfohlene Antworten

Veröffentlicht

Hoi,

ich habe folgendes Problem:

Ich soll eine Umfrage-Auswertung machen - bei dieser Umfrage wurde an jeden Umfrageteilnehmer innerhalb der Firma eine Excel-Arbeitsmappe geschickt, in die jede Menge CheckBoxes (Multiple Choice) eingebettet sind.

Da ich wenig Lust habe, 78 Arbeitsmappen per Hand abzugrasen, wollte ich die Auswertung gerne mit einem VBA-Makro durchführen.

Wie kann ich es per VBA-Makro hinkriegen, den Status einer solchen Checkbox auszulesen?

Ich bin bisher so weit, dass ich die einzelnen Arbeitsmappen mittels einer Schleife hintereinander öffne und dann auch wieder schließe (Workbooks.Open ... [please insert CheckBox-Auswertungs-Code at this position] ... Workbooks(Workbooks.Count).Close ...) - bloß wie ich dann den Checked-Status der CheckBoxen auswerten kann, weiß ich leider nicht.

Könnt ihr mir helfen?

Bis dönne,

whisper

Hi

also das mit der checkbox-auswertung is ganz easy :)

bezieht sich in meinem beispiel auf das Tabellenblatt "Tabelle1"

und ne checkbox names CheckBox1

.....und schreibt auf Tabelle1 in die erste Zelle ob die Cekckbox aktiviert ist oder nicht

If Sheets("Tabelle1").CheckBox1.Value = True Then

Sheets("Tabelle1").Cells(1, 1) = "JA"

Else

Sheets("Tabelle1").Cells(1, 1) = "NEIN"

End If

Viel Spass noch

Goos

Danke für die Hilfe :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.