Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Soniya" wrote in message ... Hi All, How can I have AB,AC,AD as combo box items without usig row source? TIA Soniya By explicitly adding them to the combobox from VBA On a sheet With ActiveSheet.OLEObjects("ComboBox1").Object .AddItem "ab" .AddItem "ac" .AddItem "ad" End With on a userform With ComboBox1.Object .AddItem "ab" .AddItem "bc" .AddItem "cd" End With Keith |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry..
i want to have onle these three items in the combo box lists... not add any.. how i can define it without a row source? TIA Soniya -----Original Message----- "Soniya" wrote in message ... Hi All, How can I have AB,AC,AD as combo box items without usig row source? TIA Soniya By explicitly adding them to the combobox from VBA On a sheet With ActiveSheet.OLEObjects("ComboBox1").Object .AddItem "ab" .AddItem "ac" .AddItem "ad" End With on a userform With ComboBox1.Object .AddItem "ab" .AddItem "bc" .AddItem "cd" End With Keith . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Soniya" wrote in message ... Sorry.. i want to have onle these three items in the combo box lists... I understood that. not add any.. Add is the method you use to put an item in the combobox. To clear it first use CombBox1.clear e.g. With ActiveSheet.OLEObjects("ComboBox1").Object .Clear .AddItem "ab" .AddItem "ac" .AddItem "ad" End With how i can define it without a row source? See Above Keith |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
SUMPRODUCT to count items with duplicates where another column contains two defined items | Excel Worksheet Functions | |||
Access items stored in combobox | Excel Discussion (Misc queries) | |||
formatting the list items for ComboBox created using Forms | Excel Discussion (Misc queries) | |||
named range, data validation: list non-selected items, and new added items | Excel Discussion (Misc queries) |