try this..
VB Code:
  1. Private Sub cmdGoogle_Click()
  2.     Dim i As Long
  3.     'search text for blocked
  4.     For i = 0 To lstBlocked.ListCount - 1
  5.         If InStr(cboSearch.Text, lstBlocked.List(i)) Then
  6.             MsgBox "The Search Contains A Word That Is In The Block List."
  7.             Exit Sub
  8.         End If
  9.     Next i
  10.     'make sure its not null
  11.     If Len(cboSearch.Text) = 0 Then
  12.         Exit Sub
  13.     End If
  14.     'no blocked word found in search string, so lets continue
  15.     wb1.Navigate ("http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=" & cboSearch)
  16.                    
  17.     ' Search to see if exists in combobox
  18.     For i = 0 To cboSearch.ListCount - 1
  19.         If UCase(cboSearch.Text) = UCase(cboSearch.List(i)) Then
  20.             Exit Sub
  21.         End If
  22.     Next i
  23.    
  24.     'doesnt exist so add it to top
  25.     cboSearch.AddItem cboSearch.Text, 0
  26.    
  27.     'save the new list
  28.     Open App.Path & "\GoogleHistory.dat" For Output As #1
  29.         For i = 0 To cboSearch.ListCount - 1
  30.             Print #1, cboSearch.List(i)
  31.         Next i
  32.     Close #1
  33.    
  34. End Sub