I need to test the value of several userform textboxes and I'm currently using the code
where Ctrl is declared as a Control.
So far, so good. However, I've noticed that the order in which the controls are tested doesn't correspond with my tab order (suspect it may be the order they were created).
Other than re-creating my userform in the order I wish the controls to be tested, is there a method for specifying the order they should be tested?
Many thanks
Code:
For Each Ctrl In .Controls
So far, so good. However, I've noticed that the order in which the controls are tested doesn't correspond with my tab order (suspect it may be the order they were created).
Other than re-creating my userform in the order I wish the controls to be tested, is there a method for specifying the order they should be tested?
Many thanks