Bonjour,
Vous avez plusieurs id_tp identiques donc je doute que vous cherchiez à avoir les noms dans une textbox mais plutôt dans une combobox.
Voici un essai dans le module de la feuille correspondant à la cellule avec la validation :
private sub worksheet_change(byval target as range)
if target.address = "$A$1" then 'si la cellule avec la liste est en A1
pl = application.match(target, range("Liste des TP[id_tp]"), 0) 'première ligne match
dl = application.match(target, range("Liste des TP[id_tp]"), 1) 'dernière ligne match
Liste = application.transpose(range("Liste des TP[nom]").offset(pl - 1, 0).resize(dl, 1)) ensemble des matchs
with userform1 'adapter nom uf
.combobox1.list() = Liste 'adapter nom combobox
.show
end with
end if
end sub
Cdlt,