Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Cesar Gonzalez   on Jan 31 In MS Office Category.

  
Question Answered By: Chad Bradley   on Jan 31

This should do the trick I think...


Private Sub cboLimitToList_Change()

Dim slText As String
Dim ilN As Integer
Dim ilLen As Integer

If cboLimitToList.Text = "" Then
Exit Sub
End If

slText = cboLimitToList.Text
ilLen = Len(slText)

For ilN = 0 To cboLimitToList.ListCount - 1
If slText = Mid(cboLimitToList.List(ilN), 1, ilLen) Then
Exit Sub
End If
Next

cboLimitToList.Text = ""

End Sub

Share: 

 

This Question has 16 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Drop down lists Or get search suggestion and latest updates.


Tagged: