Henrybukowski
New Member
- Joined
- Apr 16, 2013
- Messages
- 29
Hi all,
Linked Post: Referencing Check-box
I'm trying to count Ticked check-boxes, having used Form Control check-boxes: I've tried lots of different things, but I cannot correctly refer to the checkbox objects.
Can anybody help me correct the above, so that the macro is fit for purpose?
Many thanks.
Linked Post: Referencing Check-box
I'm trying to count Ticked check-boxes, having used Form Control check-boxes: I've tried lots of different things, but I cannot correctly refer to the checkbox objects.
Code:
[/COLOR]Sub What2()
Dim k As Integer, count As Integer
For k = 1 To 24
If Sheet1.Shapes("CheckBox " & k).ControlFormat.Value Then
count = count + 1
End If
Next k
Range("A1").Value = count
End Sub[COLOR=#333333]
Can anybody help me correct the above, so that the macro is fit for purpose?
Many thanks.