Commande du bouton dans un MSGBOX en VBA
Résolu/Fermé
A voir également:
- Commande du bouton dans un MSGBOX en VBA
- Bouton on off ✓ - Forum Loisirs / Divertissements
- Erreur 1004 vba ✓ - Forum VB / VBA
- Invite de commande - Guide
- Vba date du jour - Forum Excel
- Lidl commande en ligne ✓ - Forum Consommation et internet
2 réponses
Bonjour,
Il faut employer MsgBox comme une fonction et non une instruction
Private Sub CommandButton1_Click()
dim reponse as integer
Unload UserForm1
Collem = Range("B1").Value
reponse = MsgBox ("Vous avez choisie " & Collem & " comme lettre?", vbYesNo)
Select Case reponse
Case vbNo
Load UserForm1
UserForm1.Show
End Select
End Sub
Il faut employer MsgBox comme une fonction et non une instruction
Private Sub CommandButton1_Click()
dim reponse as integer
Unload UserForm1
Collem = Range("B1").Value
reponse = MsgBox ("Vous avez choisie " & Collem & " comme lettre?", vbYesNo)
Select Case reponse
Case vbNo
Load UserForm1
UserForm1.Show
End Select
End Sub