combo box in a user form

G

Guest

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.
 
G

Guest

When I do this I get the following error message:

Complie error: Expected Function or variable
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top