Comment savoir si une cellule est colorer ou non sur VBA
Résolu/Fermé
A voir également:
- Comment savoir si une cellule est colorer ou non sur VBA
- Excel colorer une cellule sous condition d'une autre cellule ✓ - Forum Excel
- Erreur 1004 vba ✓ - Forum VB / VBA
- Vba récupérer valeur cellule ✓ - Forum VB / VBA
- Colorer cellule excel sous condition - Guide
- Excel si cellule contient texte alors ✓ - Forum Excel
1 réponse
cs_Le Pivert
Messages postés
7883
Date d'inscription
jeudi 13 septembre 2007
Statut
Contributeur
Dernière intervention
18 mars 2023
724
19 mai 2015 à 16:57
19 mai 2015 à 16:57
Bonjour,
Sub test()
Dim Col As Range, C As Range
For Each Col In Range("A1:A50").Columns ' a adapter
For Each C In Col.Cells
If C.Interior.ColorIndex = "-4142" Then 'pas de couleur
'rien
Else
'mettre le code de décalage à droite a la place des MsgBox
MsgBox C.Interior.ColorIndex
MsgBox C.Column
MsgBox C.Row
End If
Next
Next
End Sub
21 mai 2015 à 16:32