1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| Sub Hello()
Dim i, j
i = 3 'je suppose que mon tableau commence par la ligne No 3
j = 3
While Range("A" & i) <> "" ' si je trouve un vide dans la colonne A la boucle S'arrete
If Left(Cells(i, 8), 1) = 6 Then ' je suppose que ta colonne qui contient un 6 est la Colonne H
For j = 1 To 50
If Cells(i, j) > 100000 Then ' le test
Cells(i, j).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 255
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End If
Next j
j = 1
End If
i = i + 1
Wend
End Sub |