bonjour
comment afficher dans un TextBox2 la dernier valeur dans la feuil TABLE C1:C10000 correspond a la valeur du ComboBox1
ex
si agence =A ========> ancien solde=25
ou si agende= E ======>ancien solde= 14
merci beaucoup
![]()
bonjour
comment afficher dans un TextBox2 la dernier valeur dans la feuil TABLE C1:C10000 correspond a la valeur du ComboBox1
ex
si agence =A ========> ancien solde=25
ou si agende= E ======>ancien solde= 14
merci beaucoup
![]()
essaies ceci ( pas tester, fait à la louche)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 With Sheets(1) TBL = .Range("a2:c" & Range("a1").End(xlDown).Row) End With For t = 1 To UBound(TBL) If CStr(TBL(t, 1)) = textbox1.Value Then If TBL(t, 2) = ComboBox.Value Then textbox2.Value = TBL(t, 3) Exit For End If End If Next
Partager