Vous utilisez un navigateur obsolète. Il se peut que ce site ou d'autres sites Web ne s'affichent pas correctement. Vous devez le mettre à jour ou utiliser un navigateur alternatif.
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 !
Bonsoir
Bonsoir le Fil ,le Forum
pas évident Lol
Ce que j'ai mis a minima et qui répond a la demande !
VB:
Private Sub UserForm_Initialize()
Dim DerLig As Long
Dim f
Set f = Sheets("Adresses")
DerLig = f.Range("B" & Rows.Count).End(xlUp).Row
Me.Cbx_NumClt.RowSource = "'Adresses'!B3:B" & DerLig
DerLig = f.Range("C" & Rows.Count).End(xlUp).Row
Me.ListBox1.List = f.Range("B2:I" & DerLig).Value
AffDonnées (DerLig + 1)
End Sub
Private Sub CommandButton1_Click()
If TextBox1.Value = "" Then
If TextBox2.Value = "" Then
MsgBox "Please Input the User Name and the Password"
Else
MsgBox "Please Input the User Name"
End If
ElseIf TextBox1.Value = "admin" Then
If TextBox2.Value = "" Then
MsgBox "Please Input the Password"
ElseIf TextBox2.Value = "1234" Then
Me.Hide: Application.Visible = True
Else
MsgBox "Please Input the right User Name and the right Password"
End If
Else
If TextBox2.Value = "" Then
MsgBox "Please Input the Password"
Else
MsgBox "Please Input the right User Name and the right Password"
End If
End If
End Sub
Private Sub CommandButton2_Click()
ThisWorkbook.Application.Quit
End Sub
Private Sub TextBox2_Change()
End Sub
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
ThisWorkbook.Application.Quit
End Sub
Avant de t’aventurer dans le mot de passe avance sur ton userform de saisie qui ne fonctionne pas bien
De plus ton bouton modifier et nouveau contact ne servent à rien puisque il faut ce servir du bouton enregistrer pour les modifications et nouveau contact
- 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