Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Close button userform

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Close button userform

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

"Excelerate-nl" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW to close a userform using a button CC Excel Discussion (Misc queries) 2 October 10th 08 02:06 PM
Userform close button AOU Excel Discussion (Misc queries) 4 September 21st 07 05:56 PM
Userform + close button Chip Smith Excel Discussion (Misc queries) 2 April 1st 06 09:35 AM
Userform close button Les Stout[_2_] Excel Programming 2 November 3rd 05 06:44 PM
Close Button on Userform Jean-Paul Viel Excel Programming 0 September 20th 03 06:44 PM


All times are GMT +1. The time now is 12:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"