![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Dallas, TX
Posts: 15
|
I'm writing a macro in excel that calls a user form. On the form I want to have a button that allows the user to return to the origional macro module and continue executing code from the place where it left off. What codes should I use to exit the form and how do I get the orgional module to "remember" where it was?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
So long as your code looks something like this:
...The code will continue from the line "Some more code here" when you get rid of the userform. Now, the button on your userform, I'm guessing that you simply want to kill the userform and allow the macro to continue. In the buttons click event in the userform code module simplt put this line of code:
This will kill the form and return you to the next part of your macro. HTH |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|