Userform Combo boxes Excel VBA -
so kind of annoying because have tried every suggestion have read far, ut cannot seem user form combo boxes filled via vba.
i have tried following methods seem work me....
me.weeks.list = array("30", "36", "40")
and....
weeks .additem "30" .additem "36" .additem "40" end
and far nothing shows in userform when run it. there setting missing? of course these part of initialize event. :)
more code per request:
private sub toolboxform_initialize() weeks.clear 'more stuff me.minayweeks.list = array("30", "36", "40") 'with minayweeks ' .additem "30" ' .additem "36" ' .additem "40" 'end 'more stuff end sub
there's stuff calculations ok button, nothing affects contents of combobox, stuff references value of selected option.
thanks in advance guys
in userform initialize event add code, add reference userform (me.weeks).
with me.weeks .additem "30" .additem "36" .additem "40" end
Comments
Post a Comment