Hi Everyone,
I have a UserForm where a user can check some check boxes and fill in some field. I have one inputfield where the users enters a number, when the user enters 0, I want a msgbox displayed, and when the user hits "ok" I wan't the form to be still open, but the code to stop executing. I've tried this with an End, Exit Sub, etc. The problem is that the code i'm running is a function, which i'm calling in another piece of code. So when I use "Exit Sub", it still executes the rest of the code.
How do I fix this?
I have a UserForm where a user can check some check boxes and fill in some field. I have one inputfield where the users enters a number, when the user enters 0, I want a msgbox displayed, and when the user hits "ok" I wan't the form to be still open, but the code to stop executing. I've tried this with an End, Exit Sub, etc. The problem is that the code i'm running is a function, which i'm calling in another piece of code. So when I use "Exit Sub", it still executes the rest of the code.
How do I fix this?