Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How to fill List in Combo Box from Design

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default How to fill List in Combo Box from Design

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default How to fill List in Combo Box from Design

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How to fill List in Combo Box from Design

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default How to fill List in Combo Box from Design

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo chart format- what is the best way to achieve this design? ker_01 Charts and Charting in Excel 1 March 9th 09 11:18 PM
Shopping list design Kathrine New Users to Excel 1 November 7th 06 03:31 AM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
Hyperlinks Inserted in Design Mode inactive once Exited Design Mod Craig Excel Programming 0 March 16th 05 04:53 PM
Combo Box goes to edit mode even if design mode is in OFF position Chas Excel Discussion (Misc queries) 0 January 7th 05 07:21 PM


All times are GMT +1. The time now is 10:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"