Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Problem With a combo box. For some reason, the combo box will no
populate until someone clicks onto the combobox and tries to ente text. Then the proper list displays. If you just click on the comb box, its empty. Here is the code I used: _____________ Private Sub defaultscorecombobox_Change() Dim defaultlist As Variant defaultlist = Worksheets("SPSOP").Range("Z2:Z11") Mastercontrol.defaultscorecombobox.List = defaultlist End Sub ___________ -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
jasonsweeney < wrote:
Problem With a combo box. For some reason, the combo box will not populate until someone clicks onto the combobox and tries to enter text. Then the proper list displays. If you just click on the combo box, its empty. Here is the code I used: _____________ Private Sub defaultscorecombobox_Change() Dim defaultlist As Variant defaultlist = Worksheets("SPSOP").Range("Z2:Z11") Mastercontrol.defaultscorecombobox.List = defaultlist End Sub That's because you're using the change event to populate the combobox, hence it is populated when someone enters text. You have to put this piece of code in the Userform_Initialize event. Regards, -- Beto Reply: Erase between the dot (inclusive) and the @. Responder: Borra la frase obvia y el punto previo. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
combo/text box print issue | Excel Discussion (Misc queries) | |||
Easy macro issue (I think) | Excel Discussion (Misc queries) | |||
new user with easy question? not easy for me | New Users to Excel | |||
easy combo box question | Excel Programming | |||
Combo box issue when attached to projector | Excel Programming |