Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Clear contents of Combobox in Multipage user form


Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2003, 08:12 AM
pemnuts pemnuts is offline
Regular
 
Join Date: Jun 2003
Posts: 57
Default Clear contents of Combobox in Multipage user form


I would like to have a command button on a multipage, that when clicked, it would clear the contents of the comboboxes and text boxes on that page.

Thanks for any input everyone
Reply With Quote
  #2  
Old 11-17-2003, 11:08 AM
Kluz's Avatar
Kluz Kluz is offline
Sapience.Aquire

Super Moderator
* Expert *
 
Join Date: Oct 2003
Location: Lake Bluff, Ill., U.S.
Posts: 3,337
Default

Code:
Textbox1.Value = "" Combobox1.Value = "" 'to clear the combobox list: Combobox.Clear
__________________
No the other right mouse click
Reply With Quote
  #3  
Old 11-18-2003, 06:12 PM
pemnuts pemnuts is offline
Regular
 
Join Date: Jun 2003
Posts: 57
Default

Quote:
Originally Posted by Kluz
Code:
Textbox1.Value = "" Combobox1.Value = "" 'to clear the combobox list: Combobox.Clear






Thanks Kluz - just what I needed =)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form oddity - How do I make a user form inactive but visible Francois Excel 9 09-27-2004 03:52 PM
PictureBox contents disappearing when I open a another form in the application. debbied General 2 01-14-2004 08:43 PM
How to clear User FOrm Option Button dppatt Excel 1 06-24-2003 04:48 PM
can i clear the whole combobox in one go? eg not knowing number of contents aaa General 1 02-25-2003 03:44 AM
Color Palette in User Form MJD Word, PowerPoint, Outlook, and Other Office Products 1 04-10-2002 06:26 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->