Results 1 to 12 of 12

Thread: Checking if duplicate element in combobox

Threaded View

  1. #12
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Checking if duplicate element in combobox

    the code does not work
    i did test it (with some alterations) before posting, what part does not work

    edit: a couple of copy errors
    vb Code:
    1. For i = 9 To 88
    2.               Me.cboChemical.Text = Sheets("Solvent").Cells(i, 1)
    3.                If Not Me.cboChemical.MatchFound And Not Me.cboChemical.Text = "" Then Me.cboChemical.AddItem Me.cboChemical.Text
    4.           Next
    Last edited by westconn1; Jul 2nd, 2007 at 04:53 AM.
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width