I am trying to create a control array like this:
I keep getting "Object variable or with block variable not set". Any help?
Thank you.
michael.kemp@gs.com
Code:
dim a_cbtn(1 To 12) As Control, ctl as control
x = 1
For Each ctl In frm.Controls
If ctl.Name Like "cbtn*" Then
a_cbtn(x) = ctl
x = x + 1
End If
Next ctl
I keep getting "Object variable or with block variable not set". Any help?
Thank you.
michael.kemp@gs.com