View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Edwin Tam[_7_] Edwin Tam[_7_] is offline
external usenet poster
 
Posts: 94
Default combo box in a user form

Add the ".clear" after the first line.

With cmbMonth
.Clear
.Additem "Jan"
....


Regards,
Edwin Tam

http://www.vonixx.com


"juliejg1" wrote:

I have created a form containing a combo box using the following code:
With cmbMonth
.AddItem "Jan"
.AddItem "Feb"
.AddItem "Mar"
.AddItem "Apr"
.AddItem "May"
.AddItem "June"
.AddItem "July"
.AddItem "Aug"
.AddItem "Sept"
.AddItem "Oct"
.AddItem "Nov"
.AddItem "Dec"

It works great except once an entry is made, the contents in the form fields
cleared, and another entry is to be made, the combo multiplies showing a
doubled list of months. How can I keep these from doubling.