Hi all, how would I populate a specific cell when a checkbox is checked? I tried the code below, but it doesnt change the cell value automatically. Any help would be appreciated.
VBA Code:
Private Sub CommandButton9_Click()
If CheckBox1.Value = True Then
Range("A109").Value = "ZJ2"
ElseIf CheckBox1.Value = False Then
Range("A109").ClearContents
If CheckBox2.Value = True Then
Range("A109").Value = "ZJ3"
ElseIf CheckBox2.Value = False Then
Range("A109").ClearContents
End If
End If
End Sub