Whenever I try to use an End Sub in my If statement it wont work why is this and is there any way I can get around it.
Matt
Printable View
Whenever I try to use an End Sub in my If statement it wont work why is this and is there any way I can get around it.
Matt
Try Exit Sub. That is, if I'm understanding you correctly.
You cant do that. You use Exit sub.
Alright I tried that but it isn't working either. Is there any way I can just make it stop running the code after the if statement. I'm pretty much just checking a textbox to see if it has any text before the user clicks the button.
Matt
If text = "" then
exit sub
end if
you may want to post your code. You condition isnt being met so you have done something else wrong. Its not the Exit Sub.
Yup, I'm an idiot went back and checked my code, now it works fine.
Thanks a lot,
Matt