Comment savoir si une cellule est colorer ou non sur VBA
Résolu
SimHan
-
SimHan -
SimHan -
A voir également:
- Comment afficher avec un fond colorer les cellules
- Comment colorer une cellule excel avec une formule si - Guide
- Comment mettre une vidéo en fond d'écran - Guide
- Formule excel pour additionner plusieurs cellules - Guide
- Afficher cellules masquées excel - Forum Excel
- Comment colorer une cellule excel en fonction du contenu d'une autre cellule ✓ - Forum Excel
1 réponse
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
SimHan
Parfait, merci à toi Le Pivert.