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 Message()
Application.ScreenUpdating = False
Sheets("Rapport").Select
For i = 2 To 1000
acquit = Cells(i, 2)
acquit1 = Cells(i, 1)
If acquit = "" And Not IsEmpty(acquit1) Then 'si la cellule acquit est vide et que la cellule acquit1 est remplis alors .....
Sheets("Rapport").Select
Result = Cells(Range("A1").End(xlDown).Row, 1).Value
MsgBox "depassement:" & Result 'faire apparaitre mon message
Else'au sinon partir sur la feuille rapport
Sheets("Rapport").Select
End If
Next i
Sheets("Saisie").Select
Application.ScreenUpdating = True
End Sub |