Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I want to entry some list to combo box from design, something like : Sunday, Monday, etc. But I cannot find 'List' property, like I found it in Visual Basic. Please help me to solve this problem. Thanks, Resant |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
where is your combo box stored - is it on a custom form, or directly on
a worksheet. If on the worksheet, did it come from the forms toolbar or the controls toolbar? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For a Userform:
Private Sub UserForm_Initialize() v = Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") ComboBox1.List = v End Sub On the worksheet Sub ABC() v = Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday") With ActiveSheet ' control toolbox combobox .ComboBox1.List = v ' forms toolbar dropdown .DropDowns("Drop Down 2").List = v End With End Sub Incell dropdown (Data Validation) Sub AddValidation() Dim rng As Range Set rng1 = Range("C9") With rng1.Validation .Delete .Add Type:=xlValidateList, _ AlertStyle:=xlValidAlertStop, _ Operator:=xlBetween, _ Formula1:= _ "Sunday, Monday, Tuesday, " & _ "Wednesday, Thursday, Friday, " & _ "Saturday" .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "" .ErrorMessage = "" .ShowInput = True .ShowError = True End With End Sub -- Regards, Tom Ogilvy "Resant" wrote: Hi all, I want to entry some list to combo box from design, something like : Sunday, Monday, etc. But I cannot find 'List' property, like I found it in Visual Basic. Please help me to solve this problem. Thanks, Resant |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I create combo box in a worksheet, using Control Toolbox.
I don't want to fill the list from macro, but from the properties directly, just like VB. Is it possible? Thanks, Resant |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use the ListFill range property to set the data from the
worksheet, but there isn't a LIST item as in VB. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combo chart format- what is the best way to achieve this design? | Charts and Charting in Excel | |||
Shopping list design | New Users to Excel | |||
Filtered list for Combo Box ListFillRange - Nested Combo Boxes | Excel Programming | |||
Hyperlinks Inserted in Design Mode inactive once Exited Design Mod | Excel Programming | |||
Combo Box goes to edit mode even if design mode is in OFF position | Excel Discussion (Misc queries) |