Endig Private Sub after MsgBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In 'Private Sub Command2_Click()' I have a check if any of the available
checkboxes has been activated (via an if loop). If not, a Message is
displayed.
How can I exit the Private Sub after this message has been displayed, there
is no use going through the rest without a checkbox being activated.
 
Use an If ... then ... else ...end if

something like this

Private Sub Command2_Click()

if checkboxes ok then
run your remaining code
else
display your message
end if

end sub
 
Back
Top