I have to transfer information from a number of textboxes on a userform to a spreadsheet.
Rather than list every textbox, i want to be able to loop through them to reduce the amount of code.
ie instead of:
Cells(1,1)=Textbox1.value
Cells(2,1)=Textbox2.value
Cells(3,1)=Textbox3.value
etc
I want to do something like
For i = 1 to 10
myrow = i
Cells(myrow,1)=Textbox i.value
next i
the above doesn't work - is it possible to do somehow?
Thanks,
Grace
Rather than list every textbox, i want to be able to loop through them to reduce the amount of code.
ie instead of:
Cells(1,1)=Textbox1.value
Cells(2,1)=Textbox2.value
Cells(3,1)=Textbox3.value
etc
I want to do something like
For i = 1 to 10
myrow = i
Cells(myrow,1)=Textbox i.value
next i
the above doesn't work - is it possible to do somehow?
Thanks,
Grace