1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Private Sub Commande2_Click()
'Ici InputBox pour saisie de l'initiale
Dim ValeurInit As String
ValeurInit = InputBox("Entrez la valeur de l'initiale: ", "Saisir Initiale")
'Ici MsgBox pour valider Oui / Non
Dim msg, style, Titre, reponse
'Ici Texte16 contiendras le nom de la personne
msg = "Vous allez attribuer ce dossier à " & Texte16
style = vbYesNo + vbCritical + vbDefaultButton2
Titre = "*** Demande de confirmation ***"
reponse = MsgBox(msg, style, Titre)
'Si tu clic sur OK, ici tu peux mettre n'importe quel code
If reponse = vbYes Then
MsgBox "Opération OK"
'Sinon, si tu clic sur Annule, le code s'arrête tout simplement.....
Else
End If
Exit Sub
End Sub |
Partager