Okay, I see what you're saying, have a look at the forms Controls property.
This is a collection of all the controls on the form. As far as I can see
you need to refer to each control by its index rather than its name, or
cycle through looking for all textbox controls or all label controls eg
dim tb as textbox
for each tb in Form1.Controls
if tb.Name = "textbox1" then
do something
end if
next tb
I haven't played around with Forms.Controls too much so someone out there
may know a better way. If variable control names on a form are really
important for your app, then maybe it would be worth making a custom
collection of textboxes that have keys corresponding to the name of the
individual textboxes.
Good luck
Mitch