Bonjour j'aimerai savoir comment serait ce possible d'afficher une ligne dans un userform par exemple un textbox.
j'ai essayé cela mais ca ne marche pas
où ma fonction ligne_match est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 Private Sub CommandButton2_Click() Sheets(2).Activate l = ligne_match(TextBox1) ligne1 = Range("A" & l).Row Rows(ligne1).Select TextBox6.Value = Row(ligne1).Value End Sub
il selectionne la bonne ligne mais je suis coincé pour l'afficher dans un userform ou autre
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 Function ligne_match(ByVal critere As Long) i = 2 Do While (Not Sheets(2).Cells(i, 1) = critere) i = i + 1 Loop ligne_match = i End Function
merci d'avance
Partager