A Arpanakumar Member Feb 28, 2017 #1 Hello Wanted to add some values to combo box programatically...Please help.
Monty Well-Known Member Feb 28, 2017 #2 Hi Try this.. As there is no sample attatched! Code: With ComboBox1 .AddItem "Excel 2003" .AddItem "Excel 2007" .AddItem "Excel 2010" .AddItem "Excel 2013" .AddItem "Excel 2016" End With
Hi Try this.. As there is no sample attatched! Code: With ComboBox1 .AddItem "Excel 2003" .AddItem "Excel 2007" .AddItem "Excel 2010" .AddItem "Excel 2013" .AddItem "Excel 2016" End With
Monty Well-Known Member Feb 28, 2017 #4 Hello If you know events...problem is solved. Check the below screenshot use the above code in the workbook open event that meens when ever you open workbook your combox is loaded with the items. Let me know any challenges!
Hello If you know events...problem is solved. Check the below screenshot use the above code in the workbook open event that meens when ever you open workbook your combox is loaded with the items. Let me know any challenges!
A Arpanakumar Member Feb 28, 2017 #5 Monty! Oh that's great..need to understand events as refered as of now adding everything to buttons..Quite intresting..thanks
Monty! Oh that's great..need to understand events as refered as of now adding everything to buttons..Quite intresting..thanks
Monty Well-Known Member Feb 28, 2017 #6 Refer for more info. http://www.excel-easy.com/vba/events.html
A Arpanakumar Member Mar 2, 2017 #7 Hello Monty. Quick question on combo box.. How to avoid some one to enter manually in combo box please.
Hello Monty. Quick question on combo box.. How to avoid some one to enter manually in combo box please.
Monty Well-Known Member Mar 2, 2017 #8 Try this It's a property setting for combobox. Change the Style to dropdownlist.
Monty Well-Known Member Mar 2, 2017 #9 Arpana. Change the dropdown for Style property and check 1 allows you to enter data in combobox and 2 restricts..Hope this helps. The best way of learning about controls by going to each property and testing it..
Arpana. Change the dropdown for Style property and check 1 allows you to enter data in combobox and 2 restricts..Hope this helps. The best way of learning about controls by going to each property and testing it..