View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Thomas Thomas is offline
external usenet poster
 
Posts: 107
Default combo box beginner question...

That's a big help for me. I notice you answer a lot of people's questions, do
you work for Microsoft...No need to answer if to busy.
Thanks for the help

"Tom Ogilvy" wrote:

Private Sub Userform_Initialize()
With Me.Internet
AddItem "A"
AddItem "B"
End With
End Sub

If internet is the name of the combobox, it isn't going to change unless you
type something in it or you make a selection - I doubt that is what you
want, so put your code in the Initialize event of the Userform. This should
be in the userform module( select the events from the dropdowns at the top
of the module to make sure they are declared correctly).

--
Regards,
Tom Ogilvy


"thomas" wrote in message
...
I've tried to find how to make choices in a combo box but had no luck.

This
is the code I wrote, but it doesn't show up in the combo box:


Private Sub Internet_Change()
With Internet
AddItem "A"
AddItem "B"
End With
End Sub


Why doesn't this show up when form is ran???
Thanks ahead of time,
Tom