I have several controls that I wanted to enumerate through and they are numbered TestControl0 to TestControl15
I was trying to use a for loop to enumerate through them and append the loop number onto the end of the control but it looks for the control before appending the number.
Here is some code I was trying
Code:
Dim CtrlTst As Control, i
CtrlTst = Me.ControlTest(i)
'I also tried CtrlTst = Me.ControlTest + i
'And CtrlTst = Me.ControlTest & i
With CtrlTst 'Also tried putting [With (CtrlTst + i)]
.Visible = True
End With
Is this something that is possible? I wanted to avoid a large Select Case list