ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Part of my code is to check whether either of my two checkboxes have a selection.
I have CheckBox1 & Checkbox2
This is what i have in place BUT when neither of the checkboxes have been selected the following code should stop BUT it continues to run.
I have CheckBox1 & Checkbox2
This is what i have in place BUT when neither of the checkboxes have been selected the following code should stop BUT it continues to run.
VBA Code:
If CheckBox1 & CheckBox2 = False Then
MsgBox "NEITHER CHECKBOX WAS SELECTED", vbCritical, "NO CHECKBOX WAS SELECTED MESSAGE"
Exit Sub
End If