1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| p=0 ' compteur
for t=1 to 27 ' on chpope les valeurs des 27 textbox
p=p+1 ' on incrémente le compteur
reponse(p)=controls("textbox" & t).value
next
for t=1 to 20 ' on chpope les valeurs des 2 checkbox
p=p+1 ' on oublie pas
reponse(p)=controls("checkbox" & t).value
next
for t=1 to 42 ' et enfin les optionbutton
p=p+1 ' là non plus ne pas oublié
reponse(p)=controls("optionbutton" & t).value
next
with sheets(3)
lg=.range("a65535").end(xlup).row+1
.range(cells(lg,1),cells(lg,89).value=reponse
end with |