RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
Just a general question - say I have a userform with 6 option buttons and 3 checkboxes - when you use the code below, what determines the order vba uses to loop through the controls? Is it TabIndex? Is it the order they were added to the userform?
VBA Code:
Dim ctrl as Control
For Each ctrl In Me.Controls
If TypeName(ctrl) = "OptionButton" Or TypeName(ctrl) = "CheckBox" Then
Debug.Print ctrl.Name
End If
Next ctrl