Very basic "getting started with UserForm type questions!
(1) Is it so that once you have a Form.Show statement in VBA, it is a permanent branch away from the Sub that shows the form, and further code in that Sub will never be executed? All subsequent code you would want to execute then must be within the button handler?
Here is a picture of code in a button handler.
(2) It appears to me that breakpoints are not honored within the handler for the button click. Is that true? In the code above, code never stops at a breakpoint. The first MsgBox statement is executed and the MsgBox appears. The code does not break before the MsgBox (nor after it).
(3) After the message "in ok button" appears and i click OK to the MsgBox, the next statements are not executed. I am simply returned to the VBA editor, and execution has ended. The Call to NewSub and the second MsgBox are never executed. What is going on? How do i get more code to execute?
Thanks much! I know this is very basic. Just trying to get the lay of the land with UserForms and understand where the execution flow picks up next.
(1) Is it so that once you have a Form.Show statement in VBA, it is a permanent branch away from the Sub that shows the form, and further code in that Sub will never be executed? All subsequent code you would want to execute then must be within the button handler?
Here is a picture of code in a button handler.
(2) It appears to me that breakpoints are not honored within the handler for the button click. Is that true? In the code above, code never stops at a breakpoint. The first MsgBox statement is executed and the MsgBox appears. The code does not break before the MsgBox (nor after it).
(3) After the message "in ok button" appears and i click OK to the MsgBox, the next statements are not executed. I am simply returned to the VBA editor, and execution has ended. The Call to NewSub and the second MsgBox are never executed. What is going on? How do i get more code to execute?
Thanks much! I know this is very basic. Just trying to get the lay of the land with UserForms and understand where the execution flow picks up next.