Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code after the "Unload Me" call?
On userforms, I typically call "Unload Me" when a
user presses the "Cancel" or "Okay" pushbuttons on the form. I have a new situation where I might need to run some code immediately AFTER the "Unload Me" line in a userform module. Does anyone know if it's wise or reliable to put source code AFTER a call to "Unload Me"?? I get the impression that the Unload will clear the userform and all associated userform code out of memory, but I'm not sure. I'd appreciate any advice. Thank you! Robert |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code after the "Unload Me" call?
Hi Robert.
I'm not sure either. but as hint why not hiding your form rather than unloading it: Me.Hide Your Code Unload Me Michi On 2011-01-02 08:13:02 +0100, "Robert Crandal" said: On userforms, I typically call "Unload Me" when a user presses the "Cancel" or "Okay" pushbuttons on the form. I have a new situation where I might need to run some code immediately AFTER the "Unload Me" line in a userform module. Does anyone know if it's wise or reliable to put source code AFTER a call to "Unload Me"?? I get the impression that the Unload will clear the userform and all associated userform code out of memory, but I'm not sure. I'd appreciate any advice. Thank you! Robert |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Code after the "Unload Me" call?
Can the code be placed before the Unload Me call? Otherwise, as
Michael said, hide the form until everything else is done. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
User form closes after opening another one -- Problem with "Unload Me"? | Excel Programming | |||
Call a sub statement in "Personal Macro Workbook" from "ThisWorkbo | Excel Programming | |||
losing variable after "unload me" | Excel Programming | |||
"Unload" selection after running macro? | Excel Programming |