When I run this sub, frmModalessForm.Terminate() is not executing. Why not?
If I "Unload oForm" then it executes, but why not when it's set to Nothing?Please Login or Register to view this content.
When I run this sub, frmModalessForm.Terminate() is not executing. Why not?
If I "Unload oForm" then it executes, but why not when it's set to Nothing?Please Login or Register to view this content.
Hi foxguy,
Searching on VBA Excel Userform Show Hide Unload Terminate gave me:
http://support.microsoft.com/kb/829070
It claims "The Terminate event occurs after the UserForm is removed from memory".
I wonder if you can't terminate because it needs to still be in memroy by some other instruction?
http://msdn.microsoft.com/en-us/library/gg251819.aspx Using 2010?
http://msdn.microsoft.com/en-us/libr...ffice.10).aspx got a RefEdit control on the form?
I'm clueless!!
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
I guess that's what I'm asking.
Why doesn't "Set oForm = Nothing" remove the form from memory ?
Why do I have to use "Unload oForm" ?
Setting it to Nothing releases the object variable, it doesn't affect the object.
Entia non sunt multiplicanda sine necessitate
Does that mean that a form does not have any scope when I assign it to a variable? It would still exist in memory when the sub that creates it ends?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks