Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Clearing/Resetting UserForm Values

I have a sub, when it is activated it shows a form and it collects info that
the user provides in the form. When the Sub is done running I want to
clear/reset the form back to it's unpopulated state so that the next time it
is run the form is empty. How in the world do I do this?

Application.UserForm1.Reset ?
Application.UserForm1.Clear ?
Application.UserForm1 = Nothing ?
UserForm1.Clear ?
UserForm1.Reset ?

Thanks bunches.
Rob
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Clearing/Resetting UserForm Values

unload Userform1

--
Regards,
Tom Ogilvy


"Rob" wrote:

I have a sub, when it is activated it shows a form and it collects info that
the user provides in the form. When the Sub is done running I want to
clear/reset the form back to it's unpopulated state so that the next time it
is run the form is empty. How in the world do I do this?

Application.UserForm1.Reset ?
Application.UserForm1.Clear ?
Application.UserForm1 = Nothing ?
UserForm1.Clear ?
UserForm1.Reset ?

Thanks bunches.
Rob

  #3   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Clearing/Resetting UserForm Values

Out-Freakin-Standing!! It works perfectly.

"Tom Ogilvy" wrote:

unload Userform1

--
Regards,
Tom Ogilvy


"Rob" wrote:

I have a sub, when it is activated it shows a form and it collects info that
the user provides in the form. When the Sub is done running I want to
clear/reset the form back to it's unpopulated state so that the next time it
is run the form is empty. How in the world do I do this?

Application.UserForm1.Reset ?
Application.UserForm1.Clear ?
Application.UserForm1 = Nothing ?
UserForm1.Clear ?
UserForm1.Reset ?

Thanks bunches.
Rob

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
resetting excel to default values asiffaleel Excel Discussion (Misc queries) 1 May 3rd 06 09:27 PM
Clearing a textbox in userform excelnut1954 Excel Programming 2 April 14th 06 08:27 PM
Clearing the Values in a Drop - Down List Sagu Excel Programming 2 March 31st 06 12:10 AM
Resetting values based on change in cells of other column NSteinner Excel Discussion (Misc queries) 1 September 4th 05 04:09 PM
Clearing a userform Ramthebuffs[_8_] Excel Programming 2 June 28th 05 08:28 PM


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