Private Sub CommandButton3_Click()
'declaration des variables
Dim F As Worksheet
Dim Derligne As Long
'identification de la feuille des donnees
Set F = Sheets("DONNEES")
Derligne = Sheets("DONNEES").Range("A" & Rows.Count).End(xlUp).Row + 1 'derniere ligne du tableau
poet = InputBox("Veuillez ajouter le Project - Task - Contract de votre budget", "Numero d'ordre de transaction ")
If poet = "" Then End
If poet = Format(poet, "######-###-#####") Then
F.Cells(Derligne, 1) = poet
Exit Sub
Else
MsgBox "Veuillez Respecter le Format ######-###-#####"
Exit Sub
End If
End Sub