Hi,
I'm trying to write code that will loop through a set of checkboxes, determine which are checked or unchecked, and then write the corresponding value of the unchecked boxes to a new sheet. My trouble is writing the code to loop thru the boxes because I am trying:
Dim i As Integer
For i = 1 To i = 15
If CheckBox"i".Value = True Then
i = i + 1
This way, if a checkbox is checked, the loop will just move on to the next one. However, I don't know how to reference checkbox1 in the code without explicitly writing it. I know you can reference a cell by saying "A" & i but I don't know the correct syntax for a checkbox. Can anyone help me???
I'm trying to write code that will loop through a set of checkboxes, determine which are checked or unchecked, and then write the corresponding value of the unchecked boxes to a new sheet. My trouble is writing the code to loop thru the boxes because I am trying:
Dim i As Integer
For i = 1 To i = 15
If CheckBox"i".Value = True Then
i = i + 1
This way, if a checkbox is checked, the loop will just move on to the next one. However, I don't know how to reference checkbox1 in the code without explicitly writing it. I know you can reference a cell by saying "A" & i but I don't know the correct syntax for a checkbox. Can anyone help me???