#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combo Box

How do I insert values or data in to the drop down list of the combo box. I
would like to know the step by step procedure.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Combo Box

if you have a combobox (call it say cmb_1) in a form then the following will
add "A new item" to its options:

cmb_1.additem "A New Item"

And if you wanted to add "Item 1" to "item 10"

dim i as integer
for i = 1 to 10
cmb_1.additem "Item " & i
next i

If you put this code into the form.initialize script it'll be there when you
open the form.

Sam

"Clifford Thomas" wrote:

How do I insert values or data in to the drop down list of the combo box. I
would like to know the step by step procedure.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Combo Box

This site provides another method.

http://support.microsoft.com/kb/161598

You can also use the RowSource property to populate a ListBox or ComboBox.
Most of these methods are described with sample code in the VBA help files.

"Clifford Thomas" wrote:

How do I insert values or data in to the drop down list of the combo box. I
would like to know the step by step procedure.

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
Populate one combo box based on the selection of another combo box Alex Excel Programming 8 April 19th 07 06:40 PM
Excel VBA Combo Box Populating dependent on other combo box choices ikabodred Excel Programming 1 March 15th 06 03:16 PM
Filtered list for Combo Box ListFillRange - Nested Combo Boxes DoctorG Excel Programming 3 February 23rd 06 12:15 PM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


All times are GMT +1. The time now is 03:25 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"