Okay, I am learning this stuff as I go and I am super new to both VB and the SolidWorks API (I began teaching myself about 2 weeks ago). I have a Userform with two textboxs' and a button. I want the user to enter two numeric values (integers) and hit the button to execute code based on the two variables. I can show the userform when the macro runs, but I don't know how to get my button to be the trigger to continue running the code...? If I close the userform my code continue and this is not desirable - I would like the macro to end if the user selects the red X in the corner of the window.
I am sorry if this is super easy stuff, please go easy on me I'm trying to learn... Thanks in advance for any help!