Bonjour,
j'ai écrit le programme suivant en utilisant un userform
Private Sub UserForm_initialize()
DépartementCB.RowSource = "A18:A64"
NomCB.RowSource = "B18:B66"
PrénomCB.RowSource = "C18:C66"
MatriculeCB.RowSource = "D18:D66"
ProfilCB.RowSource = "E18:E66"
ProjetsCB.RowSource = "F18:F66"
MoisCB.RowSource = "H19:H42"
With Worksheets("MACRO TIME SHEET")
For i = 18 To 66
If NomCB = Cells(i, 2).Value.Select Then
Set DépartementCB = Cells(i, 1).Value
Set PrénomCB = Cells(i, 3).Value
Set MatriculeCB = Cells(i, 4).Value
Set ProfilCB = Cells(i, 5).Value
Set ProjetsCB = Cells(i, 6).Value
End If
Next i
End With
End Sub
je veux qu'à chaque fois je change de nom dans la combobox NomCB, les autres combobox changent systématiquement en chargeant les informations correspondantes.
Avec le programme actuel je n'y arrive pas.
Je compte sur votre aide.
Merci les amis(es).