J'ai un userform qu rappelle les données de mon tableau en fonction de mon combobox5
je veux rappeller la colonne b soit le n° de la fiche en ligne 10
mais dans mon combobox5 de mon formulaire je ne vois pas les fiches
mon code est le suivant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Private Sub CommandButton2_Click() 'bouton modifier Dim COMPT As Long COMPT = ComboBox5.ListIndex + 10 With Sheets("Recap") .Range("C" & COMPT).Value = TextBoxobjet End With MsgBox "EST VOUS SUR DE VOULOIR MODIFIER LA FICHE" Unload Me End Sub
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 Private Sub ComboBox5_Change() 'au changement dans la ComboBox5 Cells(ComboBox5.ListIndex + 10, 2).EntireRow.Select 'sélectionne la ligne correspondante End Sub
Partager