PDA

Click to See Complete Forum and Search --> : Unload.Me Function


TheRobster
Dec 26th, 2004, 03:44 AM
I've seen rerefernce to the VBA function Unload.Me but I'm unsure what this does. I am guessing that it's a generic command for unloading userforms, so that you don't have to use a specific reference to the name of the userform (dialog box) that is currently active if you want to unload it.

E.g. if you have two userforms that were created from a template, you could have on the template a Cancel button and just have the same code for all copies of that templete e.g. have Unload.Me as the event handler code for all subsequent Cancel buttons.

Is this how the Unload.Me function works or am I barking up the wrong tree here?

Cheers
-Rob

RobDog888
Dec 26th, 2004, 11:18 AM
The Unload statement is for unloading forms and objects from memory just
like you thought. The syntax is just like it is in VB - Unload Me.

HTH