Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > checking combobox?


Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2003, 05:11 PM
ThienZ's Avatar
ThienZ ThienZ is offline
Junior Contributor
 
Join Date: May 2003
Location: Germany
Posts: 246
Default checking combobox?


hi,
i want to textes to combobox, but i don't want to add the same one. how can i check the items?
i tried to write the code like this :
Code:
Private Function addtocombo(text) If text = " " Then Exit Function same = False For i = 1 To Klartext_Combo.ListCount '<---???? If Klartext_Combo.Item(i) = text Then '<---???? same = True End If Next i If (Not same) Then Klartext_Combo.AddItem (text) End Function
but it doesn't work....

thx in advance
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
ComboBox Within A MSHFlexgrid verno_25_02 Database and Reporting 3 06-18-2003 08:08 AM
How to determine if an item entered in cell on a worksheet is found in combobox on a pliant Excel 0 06-05-2003 07:54 AM
Problem with checking the contents of a combobox. Twan General 4 05-23-2003 08:22 PM
data from combobox not writing to file? Trin General 2 09-24-2002 02:08 AM
Combo makes RTB`s visible? golash General 2 11-27-2000 02:16 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
 
 
-->