R
red6000
Hi,
I use the following code to create an array of checkboxes on a userform:
Dim xArray()
Dim xCount As Integer
Dim xControl As Control
For Each xControl In EditFrm.Controls
If TypeOf xControl Is MSForms.CheckBox Then
ReDim Preserve xArray(xCount)
Set xArray(xCount) = xControl
xCount = xCount + 1
End If
Next xControl
How would I amend the code to create an array, but only for checkboxes
within a frame?
Thanks.
I use the following code to create an array of checkboxes on a userform:
Dim xArray()
Dim xCount As Integer
Dim xControl As Control
For Each xControl In EditFrm.Controls
If TypeOf xControl Is MSForms.CheckBox Then
ReDim Preserve xArray(xCount)
Set xArray(xCount) = xControl
xCount = xCount + 1
End If
Next xControl
How would I amend the code to create an array, but only for checkboxes
within a frame?
Thanks.