Help a newbie in a ComboBox fix.....

  • Thread starter Thread starter rosemary
  • Start date Start date
R

rosemary

Hi,

I'm experiencing some difficulty with the ComboBox macro. It works
correctly when I put it into the document (saving the document poses no
problems). After I close the program and then reopen it, I have to go
into each and every combobox and run it again! How can I avoid having
to do this each time?

Thanks,
Rosemary
 
Rosemary,
Post your code, or an example of the code you are using for the
combo boxes and we will be able to help you better.
 
Private Sub ComboBox1_Change()
ComboBox1.List = Array("1", "2", "3", "4", "5+")
End Sub



Thanks!
 
Put your fill code in a combobox get focus event handler rather than a
combobox change event handler and that should do the trick

Private Sub ComboBox1_GotFocus()
ComboBox1.List = Array("1", "2", "3", "4", "5+")
End Sub

HTH
 
Thank you so much! That did the trick. (Thanks for being patient wit
a complete newbie, too.)

Rosemar
 
You are welcome Rosemary, glad it helped. We all have to star
somewhere. :cool:

Brendo
 

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

Back
Top