Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The combobox is located on a worksheet.
ComboBox1.Clear ComboBox1.AddItem "Jan Week 1" ComboBox1.AddItem "Jan Week 2" ComboBox1.AddItem "Jan Week 3" ComboBox1.AddItem "Jan Week 4" ComboBox1.AddItem "Jan Week 5" ComboBox1.AddItem "Jan MTD" When I use the above code it prevents duplicate values because of the clear but when I select a value from the drop down it does not put the value in the combobox. The combobox is just blank. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Todd,
It works fine for me. Are you using the DropButtonClick event to populate it. Show all the code. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Todd Huttenstine" wrote in message ... The combobox is located on a worksheet. ComboBox1.Clear ComboBox1.AddItem "Jan Week 1" ComboBox1.AddItem "Jan Week 2" ComboBox1.AddItem "Jan Week 3" ComboBox1.AddItem "Jan Week 4" ComboBox1.AddItem "Jan Week 5" ComboBox1.AddItem "Jan MTD" When I use the above code it prevents duplicate values because of the clear but when I select a value from the drop down it does not put the value in the combobox. The combobox is just blank. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
yes I am using the code to populate it. Problem is once I
select a value, the value dissapears. Private Sub ComboBox1_DropButtonClick() ComboBox1.Clear ComboBox1.AddItem "Jan Week 1" ComboBox1.AddItem "Jan Week 2" ComboBox1.AddItem "Jan Week 3" ComboBox1.AddItem "Jan Week 4" ComboBox1.AddItem "Jan Week 5" ComboBox1.AddItem "Jan MTD" -----Original Message----- Todd, It works fine for me. Are you using the DropButtonClick event to populate it. Show all the code. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Todd Huttenstine" wrote in message ... The combobox is located on a worksheet. ComboBox1.Clear ComboBox1.AddItem "Jan Week 1" ComboBox1.AddItem "Jan Week 2" ComboBox1.AddItem "Jan Week 3" ComboBox1.AddItem "Jan Week 4" ComboBox1.AddItem "Jan Week 5" ComboBox1.AddItem "Jan MTD" When I use the above code it prevents duplicate values because of the clear but when I select a value from the drop down it does not put the value in the combobox. The combobox is just blank. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
additem to combobox with an array | Excel Discussion (Misc queries) | |||
AddItem Method | Excel Programming | |||
Please help with AddItem method | Excel Programming | |||
additem to a combobox from other excel worksheet | Excel Programming | |||
Multiple Column ComboBox using Additem | Excel Programming |