Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2006

Tip: Looking for answers? Try searching our database.

Close button userform

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Excelerate-nl - 23 Mar 2006 11:13 GMT
Dear Excel experts,

Does clicking the Close button of a Userform actually unload the object
(like Unload Userform1) or do I have to use the Unload statement to actually
remove it from memory?

Regards,

Jan Bart
Peter T - 23 Mar 2006 12:02 GMT
Hi Jan,

Closing a Userform with the little x button does appear to fully unload the
form from memory, assuming you have not interrupted in the QueryClose event
and done something else.

If you had set a global object reference to the form, after closing with the
little x the object ref remains "Not Nothing" even though no form properties
persist. However you would still want to set any object ref to Nothing.

Regards,
Peter T

> Dear Excel experts,
>
[quoted text clipped - 5 lines]
>
> Jan Bart
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.