Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Adding items to a ComboBox in Excel VBA

I would like to be able to dynamically add new items to a combobox
using the contents of cells in the spreadsheet. for example, C3..C6
contain the info to be added to the combobox. Can someone tell me the
code to accoplish this. I am familiar with the ComboBox.AddItem
property, but I would like to populate the combobox directly from the
spreadsheet.

Thanks in advance to anyone.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Adding items to a ComboBox in Excel VBA

Hello Glenn
For i = 1 to 6
Combobox1.additem(worksheets("Sheet1").cells(i,3). Value
Next i

HTH
Cordially
Pascal

"Glenn Speed" a écrit dans le message de
om...
I would like to be able to dynamically add new items to a combobox
using the contents of cells in the spreadsheet. for example, C3..C6
contain the info to be added to the combobox. Can someone tell me the
code to accoplish this. I am familiar with the ComboBox.AddItem
property, but I would like to populate the combobox directly from the
spreadsheet.

Thanks in advance to anyone.



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
Adding Items to a ListBox-Unique Items Only jpendegraft[_14_] Excel Programming 2 May 2nd 04 02:27 AM
ComboBox Items Todd Huttenstine[_2_] Excel Programming 1 December 14th 03 11:12 PM
Adding Items To Active X ComboBox on Sheet Dan Gesshel Excel Programming 3 October 20th 03 01:02 PM
adding items to combobox using "Tag" control to limit bob cochran Excel Programming 5 September 10th 03 05:21 PM
ComboBox items Keith Willshaw Excel Programming 2 July 17th 03 11:22 AM


All times are GMT +1. The time now is 03:47 PM.

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

About Us

"It's about Microsoft Excel"