I want to have a check box on a sheet and when I run a macro I want it to do different things depending if the check box is check or not, I do NOT want this in the check box click event but some how when the macro is run it will get the valve of the check box and do something depending on its valve. Make any sense? Something like this is what I have in mind. Will the check box need to be from the forms or control toolbox?
Thanks
Sub test()
If CheckBox1.Value = True Then
'do something here
MsgBox "true"
ElseIf CheckBox1.Value = False Then
'do something else here
MsgBox "false"
End If
End Sub
Thanks
Sub test()
If CheckBox1.Value = True Then
'do something here
MsgBox "true"
ElseIf CheckBox1.Value = False Then
'do something else here
MsgBox "false"
End If
End Sub