Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default combobox question

used the first example for now, may try the 2nd if the range is going to expand.
thanks dave

--


Gary


"Dave Peterson" wrote in message
...
Try passing a string.

Me.ComboBox1.ListFillRange _
= Worksheets("db").Range("b3:ad15").address(external :=true)

Or maybe to save some typing:

Dim myRng As Range

With Worksheets("DB")
Set myRng = .Range("b3:ad15")
End With

With Me.ComboBox1
.ColumnCount = myRng.Columns.Count
.ListFillRange = myRng.Address(external:=True)
End With



Gary Keramidas wrote:

is it possible to set the list fill range using a range name? or even just a
range?

this doesn't seem to work either,
Me.ComboBox1.ListFillRange = Worksheets("db").Range("b3:ad15")

i wanted to use something like this:
Me.ComboBox1.ListFillRange = rngLU
--

Gary


--

Dave Peterson



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
ComboBox Question jlclyde Excel Discussion (Misc queries) 2 August 27th 09 09:31 PM
ComboBox Question Duncan Edment Excel Worksheet Functions 1 August 1st 06 12:42 PM
another combobox question Gary Keramidas Excel Programming 3 December 2nd 05 12:59 AM
Combobox Question Andy Excel Programming 2 July 26th 05 04:52 PM
ComboBox Question Terry Detrie Excel Programming 2 October 18th 03 02:55 PM


All times are GMT +1. The time now is 10:39 PM.

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"