Sub test4()
MsgBoxPerso4 "", "RDV,Rappel,Pas Rappeler,Tant mieux,C'est tant pis !,ANNULER", "CLIC SUR LA BONNE AFFECTATION"
MsgBoxPerso4 "", "RDV,Rappel,Pas Rappeler,Tant mieux,C'est tant pis !,ANNULER", "CLIC SUR LA BONNE AFFECTATION", "RDV"
End Sub
' Procédure générale de mise en place des éléments
Sub MsgBoxPerso4(Prompt As String, Button As String, Title As String, Optional Bt As String = "")
TabBtn = Split(Button, ",")
UsFMsgTest.Caption = Title
UsFMsgTest.Label1.Caption = Prompt
Select Case Bt
Case "RDV": UsFMsgTest.CommandButton1_Click
Case "Rappel"
Case "Pas Rappeler"
Case "ANNULER"
Case Else: UsFMsgTest.Show (1)
End Select
End Sub