A voir également:
- VBA : Range.Value > 20
- Excel compter cellule couleur sans vba - Guide
- Mkdir vba ✓ - Forum VB / VBA
- Incompatibilité de type vba ✓ - Forum VB / VBA
- Erreur 13 incompatibilité de type VBA excel ✓ - Forum Excel
- Vba range avec variable ✓ - Forum VB / VBA
2 réponses
Bonjour,
Sub test()
For i = 1 To 500 ' test sur les 500 premières lignes
If ThisWorkbook.Sheets("feuil1").Cells(i, 15).Value > 20 Then '15 = colonne O
Cells(i, 15).Interior.ColorIndex = 3 ' coloriage des cellules correspondante
Else
End If
Next i ' incrémentation de i
End Sub
a+
Sub test()
For i = 1 To 500 ' test sur les 500 premières lignes
If ThisWorkbook.Sheets("feuil1").Cells(i, 15).Value > 20 Then '15 = colonne O
Cells(i, 15).Interior.ColorIndex = 3 ' coloriage des cellules correspondante
Else
End If
Next i ' incrémentation de i
End Sub
a+