Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling ComboBox from VBA-script
Hi,
How can I control the data in a ComboBox without using cells in a worksheet? Now I have the ListFillRange pointing to cells in my worksheet. I don't want that. I want to set the value for this from my VBA-script. Is that possible? I already use "ComboBox1.Value" to read out its value. Best regards, /Sören |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling ComboBox from VBA-script
Sören,
ListBox1.AddItem "Item 1" NickHK "Sören_Marodören" wrote in message ... Hi, How can I control the data in a ComboBox without using cells in a worksheet? Now I have the ListFillRange pointing to cells in my worksheet. I don't want that. I want to set the value for this from my VBA-script. Is that possible? I already use "ComboBox1.Value" to read out its value. Best regards, /Sören |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Controlling ComboBox from VBA-script
Hi NickHK,
This does not work for me. But I tryed something similar: ComboBox1.List = Array("Alfa", "Beta", "Gamma", "Delta") and also added a default value with the following line: ComboBox1.Value = "Gamma" So now it works for me. Br, /Sören "NickHK" wrote: Sören, ListBox1.AddItem "Item 1" NickHK "Sören_Marodören" wrote in message ... Hi, How can I control the data in a ComboBox without using cells in a worksheet? Now I have the ListFillRange pointing to cells in my worksheet. I don't want that. I want to set the value for this from my VBA-script. Is that possible? I already use "ComboBox1.Value" to read out its value. Best regards, /Sören |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
VB Script based on combobox selection | Excel Programming | |||
Combobox options based on the input of another combobox | Excel Programming | |||
Combobox, Controlling columnwidths i curtain | Excel Programming | |||
Excel 2000/XP script to Excel97 script | Excel Programming |