Bonsoir,
En voyant ton fichier ç'est tout de suite plus parlant.
Le code corrigé pour le bouton Recherche :
Private Sub cbnRECHERCHER_Click()
Dim i%, dl%, WsM, WsI
Set WsM = Sheets("MEMO") 'Feuille MEMO
Set WsI = Sheets("INSCRIPTIONS") 'Feuille INSCRIPTIONS
'Feuille CLASSEMENT
With WsM
dl = .Range("A" & .Rows.Count).End(xlUp).Row
For i = 2 To dl
If Me.txtNOM.Value & Me.txtPRENOM.Value = .Cells(i, 2).Value & .Cells(i, 3).Value Then
Me.cbbCIVILITE = .Cells(i, 1).Value
Me.txtN°_FFSB = .Cells(i, 12).Value
Me.txtN°_FSGT = .Cells(i, 13).Value
Me.txtDATE_DE_NAISSANCE = .Cells(i, 4).Value
Me.txtACTIVITE = .Cells(i, 5).Value
Me.txtAGE = .Cells(i, 6).Value
Me.txtIMMEUBLE = .Cells(i, 7).Value
Me.txtADRESSE = .Cells(i, 8).Value
Me.cbbVILLE = .Cells(i, 9).Value
Me.txtTELEPHONE = .Cells(i, 10).Value
txtTELEPHONE = Format(txtTELEPHONE, "00 00 00 00 00")
Me.txtCOURRIEL = .Cells(i, 11).Value
Exit For
End If
Next i
End With
With WsI
For i = 2 To dl
If Me.txtNOM.Value & Me.txtPRENOM.Value = .Cells(i, 2).Value & .Cells(i, 3).Value Then
'Me.cbbCIVILITE = .Cells(i, 1).Value
Me.txtRESTE_A_REGLER = .Cells(i, 3).Value
Me.txtCARTE_MEMBRE = .Cells(i, 4).Value
Me.txtCARTE_CONJOINT = .Cells(i, 5).Value
Me.txtCARTE_MEMBRE_CONJOINT = .Cells(i, 6).Value
Me.txtLICENCE_FFSB = .Cells(i, 7).Value
Me.txtLICENCE_FSGT = .Cells(i, 8).Value
Me.txtPACK_TENUES = .Cells(i, 9).Value
Me.txtTOTAL = .Cells(i, 10).Value
Me.txt1PAIEMENT = .Cells(i, 11).Value
Me.cbb1PAIEMENT = .Cells(i, 12).Value
Me.txt2PAIEMENT = .Cells(i, 13).Value
Me.cbb2PAIEMENT = .Cells(i, 14).Value
Me.txt3PAIEMENT = .Cells(i, 15).Value
Me.cbb3PAIEMENT = .Cells(i, 16).Value
Me.txtCOMPLEMENT = .Cells(i, 17).Value
Me.cbbCOMPLEMENT = .Cells(i, 18).Value
Me.txtREMISE_LICENCE_FFSB = .Cells(i, 19).Value
Me.txtREMISE_LICENCE_FSGT = .Cells(i, 20).Value
Me.txtAUTRES_REMISES = .Cells(i, 21).Value
Me.cbbCERTIFICAT_MEDICAL = .Cells(i, 22).Value
Exit For
Exit For
End If
Next i
End With
End Sub
ATTENTION : il faut supprimer la première ligne vide dans la feuille MEMO !
En relisant les sujets précédents j'ai vu que tu parlais de 64 bits. Cette information mérite d'être vérifié et confirmée : Habituellement C'est Office ou 265 qui sont 64 bits mais Excel lui est toujours en 32 bits...
Celle information se trouve dans le menu d'Excel Fichier > Compte > A propos d'Excel puis en cliquant sur le point d'interrogation.
L'information qui nous intéresse se trouve à la fin de la première ligne :
Donc il est souhaitable que tu précises dans ton profil si ton Excel est vraiment en 32 ou en 64 bits.
Libeller ton information de compte comme suit :
365 + XL 32 bits ou
365 + XL 64 bits
A+