Sub valider()
Dim n, tx
With Feuil2 'à adapter c'est l'onglet qui contiens la liste(voir en propriété)
n = Cells(.ListBox1.ListIndex + 11, 3) '+11 car commence ligne 11, le 3 c'est colonne C
If IsNumeric(n) Then
n = n + 1
Else
tx = Split(n, " ")(0)
n = Split(n, " ")(1)
n = tx & " " & n + 1
End If
If MsgBox("VALIDER " & .ListBox1.List(.ListBox1.ListIndex, 1) & " N° " & n, vbExclamation + vbYesNo, "CONFIRMATION") = vbNo Then Exit Sub
'Cells(.ListBox1.ListIndex + 11, 3) = n 'on mets le nouveau N°
Cells(.ListBox1.ListIndex + 11, 3) = n
'on mets les données en BD(àfaire)
'on fait le PDF (à faire)
'enregistre ci-dessous
'ActiveWorkbook.Save
End With
End Sub