How do I add the contents of a textbox array without enshrining the number of indexes in my code?

For example, I can't use:

Val(text2.text)= Val(text1(1).text) + Val(text1(2).text) ..etc.., because my program creates textboxes at runtime.

Is there any 'For...Next' way of doing it or something?

Thanks for any help!