I am attempting to build an array accordingly to whether a set of CheckBoxs are ticked (in a Userform), from another array. So the code is currently:
Dim MyArray(10) As Integer
MyArray = Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
Dim IntrnlArray() As Variant
For i = 1 To 10
If Me.Controls("CheckBox" & i).Value = True Then
' some code I cant figure out!
End If
Next
The resulting (possibly smaller) new array, IntrnlArray(), would then be used elsewhere. So the new array would contain the number of which checkbox has been ticked. These numbers would then be used elsewhere in further calculations, not to tell he user which checkbox has been ticked. Any help would be much appreciated!!!
Split()method.