Global value does not retain value when UserForm is hide

A

Alex

Hi

I have one class, clsTest.
Global value is declared in module, declared as "Public temp as New
clsTest".
When i init the object temp in Userform1, with a value.

This value will not be retained when i call from Userform2, when i
close Userform1 by .hide.

But surprisingly, value is retained when i close the form with "x"
button in Userform1.

Is this a known issues ?

Alex
ps : I'm using Excel 97, at W2k prof.
 
B

Bob Phillips

Alex,

Works fine for me on Excel 2000, XP Pro.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top