Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UserForm Button Help

I am hoping someone may be able to assist me with the creation of a User
Form button(s). I have managed to create a User Form that successfully
enters text into a worksheet however I am trying to add a command to my
“OK” button that not only enters text into but that also resets the
User Form in the event I wish to enter a new set of variables (i.e. I
have entered one client out of a list of 5) Alternatively, I tried to
create a “Clear Form” button that might be helpful in the event the
User wanted to remove the client without having to Cancel the Form
however thus far the command only clears One of approximately 25
fields. Any assistance on either command would be greatly appreciated.


Best,

Mike


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default UserForm Button Help

You just have to set each control to a blank or default value

Textbox1.Text = ""
Combobox1.ListIndex = -1
Checkbox1.Value = False

and so forth.

--
Regards,
Tom Ogilvy

"meflorence " wrote in message
...
I am hoping someone may be able to assist me with the creation of a User
Form button(s). I have managed to create a User Form that successfully
enters text into a worksheet however I am trying to add a command to my
"OK" button that not only enters text into but that also resets the
User Form in the event I wish to enter a new set of variables (i.e. I
have entered one client out of a list of 5) Alternatively, I tried to
create a "Clear Form" button that might be helpful in the event the
User wanted to remove the client without having to Cancel the Form
however thus far the command only clears One of approximately 25
fields. Any assistance on either command would be greatly appreciated.


Best,

Mike


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default UserForm Button Help

Easy enough! Thanks for the help Tom

--
Message posted from http://www.ExcelForum.com

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
Userform close button AOU Excel Discussion (Misc queries) 4 September 21st 07 05:56 PM
Userform + close button Chip Smith Excel Discussion (Misc queries) 2 April 1st 06 09:35 AM
Use the X button on a userform Greg B Excel Discussion (Misc queries) 3 May 16th 05 09:19 AM
button to launch my userform JasonSelf[_6_] Excel Programming 2 January 26th 04 04:11 PM
Userform button options John Green[_2_] Excel Programming 0 July 18th 03 11:59 PM


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