Sub boucleCouleur() Dim maCellule As Range Set maCellule = Range("A1") While Not maCellule.Font.ColorIndex = 3 Set maCellule = maCellule.Offset(1, 0) Wend MsgBox maCellule End Sub
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim i, h As Integer For h = 4 To 8 i = 1While Not Cells(i, h).Font.ColorIndex 3 Or Not Cells(i, 1) "" Cells(i, h) = "ok" i = i + 1 Wend Next h