Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Define Range for Combo Box

Is it possible to define a cell range for a combo box list on a user form.
If yes then how would you write the code ? I know I could list with .AddItem
"" but I have a possible list of 200 entries so I'm looking for a shortcut.

regards
GregK


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Define Range for Combo Box

Firstly, name your array

ComboBox1.List = Range("a").Value

e.g. assumes "a" is the named array

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Define Range for Combo Box

Greg,

Set the RowSource property to the range.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"gregork" wrote in message
...
Is it possible to define a cell range for a combo box list on a user form.
If yes then how would you write the code ? I know I could list with

..AddItem
"" but I have a possible list of 200 entries so I'm looking for a

shortcut.

regards
GregK




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
Define Name range Gotroots Excel Discussion (Misc queries) 10 December 19th 09 11:30 AM
Name to define a chart range mge Excel Discussion (Misc queries) 3 May 14th 09 06:31 PM
Define a range jlclyde Excel Discussion (Misc queries) 2 April 17th 08 08:26 PM
Apply Name (Define Name, Name Range) Karin Excel Discussion (Misc queries) 2 May 3rd 07 01:06 PM
Define a range based on another named range Basil Excel Worksheet Functions 2 February 21st 05 01:47 PM


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