Solved

Follow-up question for AzraSound

Posted on 2003-11-26
2
166 Views
Last Modified: 2010-05-03
Hello, I noticed you answered half of a question I was going to ask already and was hoping you could follow-up with the other half.

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10835521.html?query=combo+history&searchType=topic

How could I prevent duplicates from being added to the Combo list?

Thanks inadvance

Cos
0
Comment
Question by:CosmoNut
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
CosmoNut earned 0 total points
ID: 9828934
Ok well, answered my own question I think,

Private Sub wbMain_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
    On Error Resume Next
        If addURL = True Then
                    For i = 0 To cmbURL.ListCount - 1
                        If cmbURL.List(i) = cmbURL.Text Then GoTo InHistory
                    Next i
            cmbURL.AddItem preURL, 0
        End If
InHistory:
addURL = False
End Sub

Your thoughts?
0
 
LVL 1

Author Comment

by:CosmoNut
ID: 9849749
Thanks for your help, will ask CS to delete

COS
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question