VBA : If CheckBox.Value = True Or CheckBox.Value = True Then ...
Résolu/Fermé
fannoche35
Messages postés
11
Date d'inscription
jeudi 2 novembre 2017
Statut
Membre
Dernière intervention
12 mars 2018
-
2 nov. 2017 à 15:54
fannoche35 Messages postés 11 Date d'inscription jeudi 2 novembre 2017 Statut Membre Dernière intervention 12 mars 2018 - 21 nov. 2017 à 16:09
fannoche35 Messages postés 11 Date d'inscription jeudi 2 novembre 2017 Statut Membre Dernière intervention 12 mars 2018 - 21 nov. 2017 à 16:09
A voir également:
- Vba checkbox value
- Vba if checkbox is checked - Meilleures réponses
- Excel vba checkbox value - Meilleures réponses
- L'indice n'appartient pas à la sélection vba - Forum VB / VBA
- Incompatibilité de type vba ✓ - Forum Programmation
- Vba ouvrir un fichier excel avec chemin ✓ - Forum VB / VBA
- Excel compter cellule couleur sans vba - Guide
- Find vba - Astuces et Solutions
2 réponses
ccm81
Messages postés
10907
Date d'inscription
lundi 18 octobre 2010
Statut
Membre
Dernière intervention
24 janvier 2025
2 430
3 nov. 2017 à 18:28
3 nov. 2017 à 18:28
Essaies ceci
Les tris checkboxXX_Click font appel à la (même) procedure OK
Cdlmnt
Les tris checkboxXX_Click font appel à la (même) procedure OK
Option Explicit Sub ok() If CheckBox1 Then Rows(76).Hidden = False Else Rows(76).Hidden = True End If If CheckBox3 Then Rows(78).Hidden = False Else Rows(78).Hidden = True End If If CheckBox21 Then Rows(88).Hidden = False Else Rows(88).Hidden = True End If If (CheckBox1 Or CheckBox3 Or CheckBox21) = True Then Rows("96:167").Hidden = False Else Rows("96:167").Hidden = True End If End Sub Private Sub CheckBox1_Click() Call ok End Sub Private Sub CheckBox3_Click() Call ok End Sub Private Sub CheckBox21_Click() Call ok End Sub
Cdlmnt
21 nov. 2017 à 16:09
Excellent