View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ajliaks[_43_] ajliaks[_43_] is offline
external usenet poster
 
Posts: 1
Default Vba excel - Combo box question - erasing value


Hi all,

I have a combo box full of data. One of the data is "<New Item".
want to locate, and erase that value from the list.
I am trying the code below, but getting sintax error.
Can anybody help? Thanks in advance, Aldo.

For c1 = 0 To ComboBox.ListCount
If ComboBox.Value(c1) = "<New Item" Then
ComboBox(c1).clear
exit for
End If
Next c

--
ajliak
-----------------------------------------------------------------------
ajliaks's Profile: http://www.excelforum.com/member.php...nfo&userid=819
View this thread: http://www.excelforum.com/showthread.php?threadid=27450