1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Sub test()
Dim i As Long
Dim Plage As Range
With Sheets("21-02-2017")
i = .Range("A65536").End(xlUp).Row
For i = 2 To i
If Cells(i, 2) = "Xerox Phaser 7800GX" And Cells(i, 7).Value > 100 And Cells(i, 7).Value < 551 Then
Cells(i, 7).Value = -100
End If
If Cells(i, 2) = "Xerox Phaser 7800GX" And Cells(i, 8).Value < 300 Then
Cells(i, 8).Value = -100
End If
If Cells(i, 2) = "Xerox Phaser 7800GX" And Cells(i, 9).Value < 300 Then
Cells(i, 9).Value = -100
End If
If Cells(i, 2) = "Xerox Phaser 7800GX" And Cells(i, 10).Value < 300 Then
Cells(i, 10).Value = -100
End If
Next i
End With
End Sub |
Partager