Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Valid ControlSource values

Hi - I would try the RowSource property using the syntax
you had suggested previously (viz., sheet1!A1:C5 - This
would give you 3 columns of data available to the combo
control. Then just set ColumnCount, ColoumnHeads,
ColoumnWidth, etc). I would do this manually right on the
property sheet for the control in design mode.

For simple values, I would use a For loop or:
cbo.AddItem "1"
cbo.AddItem "2"
cbo.AddItem "3"
cbo.AddItem "4"

hth -jg


-----Original Message-----
I have a user form in Excel that contains a combo box. I

want to
populate this combo box with four values.

First, can I just key in the values in the ControlSource

property that
I want? For example.. 1;2;3;4? Or do I need to

reference some cells
in the Excel worksheet?

Second, if I have to reference some cells, what is the

proper syntax?
If I key in something like A1:A4, I get an error:

Could not set the ControlSource property. Invalid

property value.

Can someone point me in the right direction?

Thanks.


Dennis Hancy
Eaton Corporation
Cleveland, OH
.

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
How to do - B2 is only valid if B1 is zero declaire9 Excel Discussion (Misc queries) 1 April 13th 10 06:45 PM
Data Valid - refers to the values of 2 cells ash3154 New Users to Excel 5 September 17th 09 04:11 PM
Formula to check against a list of valid values Barb W[_2_] Excel Worksheet Functions 3 March 4th 08 06:51 PM
How to valid the values? Eric Excel Worksheet Functions 10 August 26th 07 05:43 AM
Change UserForm ControlSource with VBA [email protected] Excel Discussion (Misc queries) 2 February 24th 05 08:05 AM


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