Re Chti160
J'ai essayé cette méthode mais ça ne fonctionne pas:
Private Sub Cbrecherche_afterupdate()
Dim tb As ListObject
Set tb = Sheets("Base Objectif").ListObjects("tbobj" & Me.Cbrecherche)
With tb
CbComm1 = Cells(2, 1): TextBox2.Value = Cells(2, 2): TextBox3.Value = Cells(2, 3): TextBox4.Value = Cells(2, 4): TextBox5.Value = Cells(2, 5): TextBox6.Value = Cells(2, 6): TextBox7.Value = Cells(2, 7) _
: TextBox8.Value = Cells(2, 8): TextBox9.Value = Cells(2, 9): TextBox10.Value = Cells(2, 10): TextBox11.Value = Cells(2, 11): TextBox12.Value = Cells(2, 12): TextBox13.Value = Cells(2, 13): _
CbComm2 = Cells(3, 1): TextBox14.Value = Cells(3, 2): TextBox15.Value = Cells(3, 3): TextBox16.Value = Cells(3, 4): TextBox17.Value = Cells(3, 5): TextBox18.Value = Cells(3, 6): TextBox19.Value = Cells(3, 7) _
: TextBox20.Value = Cells(3, 8): TextBox21.Value = Cells(3, 9): TextBox22.Value = Cells(3, 10): TextBox23.Value = Cells(3, 11): TextBox24.Value = Cells(3, 12): TextBox25.Value = Cells(3, 13): _
Ca reprend toujours les chiffres de l'année 2022 et non pas celle de Cbrecherche, je ne comprends pas!!!
Merci