Hi,
I'm super new to VBA (althgouh I have a lot of experience with excel) and I have what I presume is a really easy question to solve for.
I've built a data entry form with some validation. Both work fine, but I've added Call Validation_PO (my validation sub) into the data entry Sub, and whilst a message box will pop up is the validation is not satisfied, the data entry form simply continues to run. Code as per;
What I would like to happen is that if the validation sub is not satisfied, then then the other sub stops. Im sure this is possible, but how do I do that?
Thanks!
I'm super new to VBA (althgouh I have a lot of experience with excel) and I have what I presume is a really easy question to solve for.
I've built a data entry form with some validation. Both work fine, but I've added Call Validation_PO (my validation sub) into the data entry Sub, and whilst a message box will pop up is the validation is not satisfied, the data entry form simply continues to run. Code as per;
What I would like to happen is that if the validation sub is not satisfied, then then the other sub stops. Im sure this is possible, but how do I do that?
Thanks!