Sub Valider_Click()
Dim Trouve As Range
Set Trouve = Worksheets("Demandes").Range("C1:C20").Find(what:=TextBox2.Value, LookIn:=xlValues, LookAt:=xlPart)
If Trouve Is Nothing Then
MsgBox "Aucune demande n'a été faite sur cette commande", vbInformation, Caption
ElseIf IsEmpty(Trouve.Offset(, 3).Value) Then
MsgBox " Votre commande n'a pas encore été traitée", vbInformation, Caption
Else
MsgBox "Votre commande" & " " & Num_cde & "" & "sera expedier le " _
& Format(Trouve.Offset(, 3), "dd/mm/yyyy"), vbInformation, Caption
End If
Unload Me
End Sub