gerardd3617
XLDnaute Occasionnel
bonsoir à tous
comment trouver le numero ligne recherchée
ci joint fichier
merci
comment trouver le numero ligne recherchée
ci joint fichier
merci
TextBox3 = ActiveCell.Row
Private Sub UserForm_Initialize()
ComboBox1.List() = Range("A2:A6500").Value
TextBox3 = ActiveCell.Row
End Sub
Private Sub UserForm_Initialize()
' pour alimenter Listbox
ComboBox1.List() = Range("A2:A" & [A2].End(xlDown).Row).Value
End Sub
Private Sub UserForm_Initialize()
' pour alimenter Listbox
ComboBox1.List() = Range("A2:A" & [A65535].End(xlUp).Row).Value
End Sub
gerardd3617 à dit:le code me donne la position du curceur dans la feuille
'numéro ligne
TextBox3 = ComboBox1.ListIndex + 1
TextBox3 = .Range(Cells(CodeLign.Row, 7).Address).Value
Private Sub UserForm_Initialize()
' pour alimenter Listbox
ComboBox1.List() = Range("A2:A" & DerLign).Value
End Sub