View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Paul Simon[_3_] Paul Simon[_3_] is offline
external usenet poster
 
Posts: 7
Default SetFocus to first textbox on userform upon Userform1.Show

Hi Bob,

You are absolutely right! If I load and unload the form several times, I eventually run out of memory. In fact, I even reached a point where Excel told me it could not save the file. (And exiting Excel does not regain the memory. You actually have to reboot.)

Thanks very much for great advice, Bob.

Paul




----- Bob Phillips wrote: -----

Paul,

Could I advise you to re-consider. Sometimes, often, it is better to hide a
sheet rather than unload it, thereby removing that load overhead if you
re-load in the same session. You can still achieve your objective using the
Activate event.

Not saying you should, just make sure you are happy which is the best way
for you.

--

HTH

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

"Paul Simon" wrote in message
...
Thanks very much Bob. Your first paragraph was the clue to my problem. I

changed from Hide to Unload Me, and now it works perfectly. Thanks again,
Bob - I appreciate it.
Paul