I would like to execute some code for each textbox in a userform. I keep trying to use a For-Each-Next loop and I get errors. I tried something like this:
Dim txtbx As TextBox
For each txtbx in USERFORMNAME
Next txtbx
where USERFORMNAME is the name of the userform that the textboxes are on. What am I doing wrong here?
- craig
Dim txtbx As TextBox
For each txtbx in USERFORMNAME
Next txtbx
where USERFORMNAME is the name of the userform that the textboxes are on. What am I doing wrong here?
- craig