ashleywanless
Board Regular
- Joined
- Aug 4, 2009
- Messages
- 158
Hi
I need to know how to write in VBA to do nothing, not exit sub just move on to the next bit of code.
I have created a userform with lots of checkboxes, i want the code to check each box but if it is not checked then move onto the next checkbox. Code below
Private Sub ExportCommand_Click()
If EDCB.Value = False Then ???????
Else
MsgBox "You checked the box"
End If
End Sub
Also my form contains 15 checkboxes but some of these are either/or checkboxes i.e i need to return an error if both are selected. I know this peice of code needs to run first but any ideas on how to structure this?
Im guessing something like the above but if checkbox1.value = true and (how can i write and)
checkbox2.value = true then
message box error
Please let me know if this is unclear
End Sub
I need to know how to write in VBA to do nothing, not exit sub just move on to the next bit of code.
I have created a userform with lots of checkboxes, i want the code to check each box but if it is not checked then move onto the next checkbox. Code below
Private Sub ExportCommand_Click()
If EDCB.Value = False Then ???????
Else
MsgBox "You checked the box"
End If
End Sub
Also my form contains 15 checkboxes but some of these are either/or checkboxes i.e i need to return an error if both are selected. I know this peice of code needs to run first but any ideas on how to structure this?
Im guessing something like the above but if checkbox1.value = true and (how can i write and)
checkbox2.value = true then
message box error
Please let me know if this is unclear
End Sub