I have a user form where I have a 2 Optionbutton group (Early and Late) and 5 Checkboxes, 1 for each day of the working week. Below is my attempt at the code however, it just doesn't work. What I'm expecting is that if Early is true and any of the days are selected the message box pops up as a warning. Any guidance on where I'm going wrong would be appreciated.
At present I've got
At present I've got
VBA Code:
If OptionEarly = True And (ChkMon = True Or ChkTue = True Or ChkWed = True Or _
ChkThu = True Or ChkFri = True) Then _
MsgBox "Has permission been provided"
End If