#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Hi

Hi,

I have a spreadsheet that when you click on a 'Form Macro'
a user form appears but it always has the old info in the
text box I want all field cleared for the user to fill
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Hi

Glenn,

This is probably because the macro does a form.Show which just shows the
form if it is already in memory, which will be true if it is 'closed' with a
form.Hide rather than Unload form.

The best thing is to add code to the Userform_Activate event to clear it

Textbox1.Text = ""

--

HTH

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

"Glenn" wrote in message
...
Hi,

I have a spreadsheet that when you click on a 'Form Macro'
a user form appears but it always has the old info in the
text box I want all field cleared for the user to fill



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



All times are GMT +1. The time now is 04:46 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"