MFish
Board Regular
- Joined
- May 9, 2019
- Messages
- 76
Hi,
I have a code that works for one checkbox to update the textbox(txtTotalBulk)... But I'm clueless on how to add up the rest of the checkboxes... Code goes
I add this to my other checkbox, bulk2, and the textbox will only refer to a single checkbox and won't add up the rest I click on. Total, I have 30 check boxes. Help, thank you.
I have a code that works for one checkbox to update the textbox(txtTotalBulk)... But I'm clueless on how to add up the rest of the checkboxes... Code goes
Code:
Private Sub bulk1_Click()
Dim i As Integer
i = 1
If bulk1.Value = True Then
txtTotalBulk.Value = i
Else: End If
If bulk1.Value = False Then
txtTotalBulk.Value = i - i
End If
End Sub
I add this to my other checkbox, bulk2, and the textbox will only refer to a single checkbox and won't add up the rest I click on. Total, I have 30 check boxes. Help, thank you.