Hi
I have 44 check boxes in my program and what i want to do is for 6 of those 44 to be selected?
Printable View
Hi
I have 44 check boxes in my program and what i want to do is for 6 of those 44 to be selected?
:confused: what is the question?
my question is how can i get exactly 6 boxes to selected?
sorry you have to explain in more detail..
what checkboxes do you want to check, when do you want them to be checked, and are all these chckboxes part of a control array or not ????
you must give us some more information, in order for us to answer your question...
one way of selecting 6 checkboxes
VB Code:
Dim c As Control Dim i As Integer For Each c In Me i = i + 1 If i = 6 Then Exit For c.Value = vbChecked Next c