This should be easy. I have read through the forums and found many examples of this and it seems very straight forward. I have used the examples other people have had without success.
What I'm trying to do seems pretty simple to me. I want a checkbox on one sheet (let's call it "A"). When checked it will add a series of 1's to a column in a different sheet (let's call it "B"). When unchecked it will clear these 1's that it added.
With this I can clear the Range no problem, but I cannot add the 1's. Any suggestions? I'm stuck. It seems like it just skips the If CheckBox1 = True Then line.
What I'm trying to do seems pretty simple to me. I want a checkbox on one sheet (let's call it "A"). When checked it will add a series of 1's to a column in a different sheet (let's call it "B"). When unchecked it will clear these 1's that it added.
Code:
Sub CheckBox1_Click()
With Sheets("B")
If CheckBox1 = True Then
.Range("A2:A12").Value = 1
Else
.Range("A2:A12").Clear
End If
End With
End Sub
With this I can clear the Range no problem, but I cannot add the 1's. Any suggestions? I'm stuck. It seems like it just skips the If CheckBox1 = True Then line.