hi all,
The following code showing my userform contains approx. 170 checkboxes.
However I am not able to identify checkboxes from CheckBox136 to CheckBox152. I took the help of properties window and explored all control but still not able to identify. Please help. Thank you in advance.
The following code showing my userform contains approx. 170 checkboxes.
VBA Code:
Sub macro1()
Dim ctl As Control
Dim j As Long
'Dim msg As String
j = 3
For Each ctl In UserForm1.Controls
If TypeOf ctl Is MSForms.CheckBox Then
If UserForm1.Controls(ctl.Name).Value = False Then
Cells(j, 5).Value = ctl.Name
j = j + 1
End If
End If
Next
End Sub
However I am not able to identify checkboxes from CheckBox136 to CheckBox152. I took the help of properties window and explored all control but still not able to identify. Please help. Thank you in advance.