VB question on ComboBox

  • Thread starter Thread starter neeas
  • Start date Start date
N

neeas

Within a Form I have a selection on a pull down menu - However if somon
wants to add another item to the list I do not know how to write th
code for it.

Example :


With cboWho
.AddItem "Client"
.AddItem "Vendor"
.AddItem "Friend"
.AddItem "Family"
End With

Someone wants to come along and add Cient - Bank and Client - Sales. I
there some way that if they type this in the combo box field that i
can update the script on the Form so that that option will be availabl
next time:

With cboWho
.AddItem "Client"
.AddItem "Client - Bank"
.AddItem "Client - Sales"
.AddItem "Vendor"
.AddItem "Friend"
.AddItem "Family"
End Wit
 
Not unless you store the information some non volatile place (like a
worksheet) and then use your code check if there are additional entries and
then load it/them into the combobox.
 
Back
Top