1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
dim reponse() as variant ' ça c'est pour les réponse
i=1
for t=1 to unbound(tablo,1)' le premier indice du tableau va être trié
' il est du style tablo(1,1) ; tablo(2,1)...tablo(n,1)
for u=1 to ubound(table,1) ' celui-ci table(1,1) -table(1,2);table(2,1)-table(2,2)..table(n,1)-table(n,2)
if tablo(t,1)= table(u,1) then
redim preserve reponse(1 to 4, 1 to i)
reponse(1,i)=table(u,1)
reponse(4,i)=table(u,2)
i=i+1
exit for
end if
next
next
with sheets(2)
.range("f2:i" & i).value=reponse
end with |
Partager