manque une astuce pour compléter macro

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

bataggone

XLDnaute Occasionnel
bonjour tt le monde
manque une astuce pour compléter macro

plus de détailles sur l'image
merci

code
Private Sub CommandButton1_Click()
Dim username, password As String

username = TextBox1.Text
password = TextBox2.Text

If username = "myuser" And password = "mypassword" Then
MsgBox "You entred the correct ino", vbInformation
Unload Me 'unload this form

Else
MsgBox "you entred the WRONG info", vbCritical Or vbYesNoCancel

'now close the workbook
ThisWorkbook.Close

End If
End Sub
 

Pièces jointes

  • Sans titre.png
    Sans titre.png
    87.7 KB · Affichages: 48
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

B
Réponses
1
Affichages
882
Bullrot
B
M
Réponses
0
Affichages
900
mohamed driss
M
3
Réponses
18
Affichages
27 K
solonath
S
Retour