What i want to do is have a modelss form Show within a macro and then when the user presses a "continue" button, for the macro to continue from the next line after the form was shown (Show method). Basically i want to give some time to use the Excel UI to look at and inspect a few things, and then if all is ok, continue the macro, or else say "Cancel" and end it. But in my experiments, modeless forms do not seem to work that way. They seem to just be a branch to the Form code, and not return to the macro that called them. Is that so? Is there a way to do what i described? My first cut is that i would just copy the rest of the code in the macro to the Continue button handler, but that seems awkward and also there are scope issues, i'd have to get all the variable values that the remainder of the macro depends on over to the Continue button handler.
Is there any way to do what i described? Just "pause the code of the macro" during the display of the modeless form, and then resume the same macro at the same point as the form was shown, when the user indicated to do so?
Thanks!
Is there any way to do what i described? Just "pause the code of the macro" during the display of the modeless form, and then resume the same macro at the same point as the form was shown, when the user indicated to do so?
Thanks!