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.

Kontrollkästchen

Empfohlene Antworten

Veröffentlicht

Hallo!

Habe ein Button und ein Kontrollkästchen. Ich möchte, dass der Button vom Kontrollkästchen abhängig ist, sprich, wenn kein Häkchen gesetzt ist, kann man den Button nicht betätigen. Wenn das Häkchen gesetzt ist dann ja.

Ist das ohne VBA möglich und wenn dann wie?

Thx

Ohne VBA? mmmmhh... wüßte nicht wie. MIt VBA kein Problem.

Gruß

JayN

Klar...


If Kästchen.Value = True Then

  Button.Enabled = True

Else  

  Button.Enabled = False

End if

JayN

  • Autor

das klappt soweit. Wenn das Häkchen gesetzt ist, öffnet der Button das Formular. Ist es nicht gesetzt, wirds auch geöffnet und folgende Frelermeldung erscheint:

"Sie können ein Steuerelement nicht deaktivieren, wenn es einen Fokus hat".

Was ist dieser Fokus?

Ach ja.... stimmt.

Du mußt vorher den Fokus auf ein anderes Steuerelement (Button, Kästchen, Textfeld etc.) hinsetzen.

Also:


If Kästchen.Value = True Then

  Button.Enabled = True

Else

  anderesElement.SetFocus   

  Button.Enabled = False

End if

JayN

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.