I want to End Sub if a Call Function fails.

I have a button that Calls a Validation Function and then moves to another tab if the validation passes, but if the validation fails I want the Sub to End and not move to the next tab.