Looping through TextBoxes

A

Al_82

I have a UserForm with an array of TextBoxes that allows the user to edit
selected data arrays from a larger database. To load these TextBoxes I can
use a brute force method:

With UserForm1
.txBox1 = array(1)
.txBox2 = array(2)
etc

but it would obviously be better to do this in a loop. My problem is I
can’t figure how to synthesize the TextBox names so I can use a loop to
functionally do:

.txBoxn= array(n)
Can someone tell me how to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top