Cell.Select If Selection.Interior.ColorIndex = 6 Then
Sub Test2InteriorColor() For Each mCell In Range("A14:M32") mCell.Select If mCell.Interior.ColorIndex = 3 Then MsgBox "Donnée à corriger", vbCritical Exit For End If Next End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim mCell As Range Dim sCondition As String Dim bResult As Boolean For Each mCell In Range("A1:A6") sCondition = mCell.FormatConditions(1).Formula1 bResult = ExecuteExcel4Macro("""" & mCell.Value & """" & sCondition) If bResult Then Debug.Print mCell.Address, , "Oui" Else Debug.Print mCell.Address, "Non" End If Next
bResult = ExecuteExcel4Macro("""" & mCell.Value & """" & sCondition)(j'ai Excel2003)