Bonjour,
Le bogue est causé par une cellule vide (G7), on ajoute donc une condition pour exclure les cellules vides. tData(x, 5) <> ""
Sub rappel()
'
' rappel Macro
'
Dim tData, sData$
With Worksheets("BASE DE DONNEES")
tData = .Range("C5:G" & .Range("C" & Rows.Count).End(xlUp).Row).Value
End With
For x = 1 To UBound(tData, 1)
If tData(x, 5) <> "" And DateDiff("d", Date, CDate(tData(x, 5))) <= 5 Then sData = sData & tData(x, 1) & " le " & tData(x, 5) & Chr(10)
Next
If sData <> "" Then MsgBox "Clients à relancer" & Chr(10) & Chr(10) & sData
End Sub
ric