Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Populating Active X Controls

Can you tell me how to populate an Active X Control -
e.g., a combo box with a small list e.g., three items,
like apples, oranges, and pears. I am not familiar with
Visual basic - can this be done somewhere in the
properties window?

Thank you,
Steve
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Populating Active X Controls

Steven,

If you put your list on a worksheet and name the range, just put this name
as the ListFillRange (if the combobox is on a worksheet), or put it as the
RowSource (if the combobox is on a form).

Or use this code (note that I used the activate event, you can use any event
or put it into a standard sub):

Private Sub UserForm_Activate()

With ComboBox1
.AddItem "apples"
.AddItem "oranges"
.AddItem "pears"
End With

End Sub

steve

"Steven Stadelhofer" wrote in message
...
Can you tell me how to populate an Active X Control -
e.g., a combo box with a small list e.g., three items,
like apples, oranges, and pears. I am not familiar with
Visual basic - can this be done somewhere in the
properties window?

Thank you,
Steve



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
Command Button Active X controls Kenny Excel Discussion (Misc queries) 1 October 2nd 07 02:39 AM
Active-X Controls - Transfer to Mac (excel) Jim May Excel Discussion (Misc queries) 4 August 22nd 07 09:08 PM
Active X Controls PA New Users to Excel 3 October 30th 05 04:33 PM
How do I stop active x controls from moving after a print preview mleavitt Excel Discussion (Misc queries) 2 September 12th 05 08:47 PM
Active X controls dksoreal Excel Discussion (Misc queries) 2 June 30th 05 02:35 PM


All times are GMT +1. The time now is 05:50 AM.

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"