Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default populating a list box

I am using the row source to populate a list box. Is there a way to populate
the list box using different ranges of a worksheet. eg B63:G71 and B82:G85.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default populating a list box

You could set the RowSource property dynamically in code.

When would you want the different ranges?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
I am using the row source to populate a list box. Is there a way to

populate
the list box using different ranges of a worksheet. eg B63:G71 and

B82:G85.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default populating a list box

The information I want to put in the list box is within the range B63 to G271.
Some of the information in this range I don't want shown.
If I hide these rows is there any way of not showing them in the list box?

"Bob Phillips" wrote:

You could set the RowSource property dynamically in code.

When would you want the different ranges?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
I am using the row source to populate a list box. Is there a way to

populate
the list box using different ranges of a worksheet. eg B63:G71 and

B82:G85.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default populating a list box

Not unless you iterate through them and pick out the non-hidden items.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
The information I want to put in the list box is within the range B63 to

G271.
Some of the information in this range I don't want shown.
If I hide these rows is there any way of not showing them in the list box?

"Bob Phillips" wrote:

You could set the RowSource property dynamically in code.

When would you want the different ranges?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
I am using the row source to populate a list box. Is there a way to

populate
the list box using different ranges of a worksheet. eg B63:G71 and

B82:G85.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default populating a list box

Can you give me an example of how I would do this please?

"Bob Phillips" wrote:

Not unless you iterate through them and pick out the non-hidden items.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
The information I want to put in the list box is within the range B63 to

G271.
Some of the information in this range I don't want shown.
If I hide these rows is there any way of not showing them in the list box?

"Bob Phillips" wrote:

You could set the RowSource property dynamically in code.

When would you want the different ranges?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
I am using the row source to populate a list box. Is there a way to
populate
the list box using different ranges of a worksheet. eg B63:G71 and
B82:G85.








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default populating a list box

Something like

ListBox1.Clear
For Each cell In Range("H1:H100")
If Not cell.EntireRow.Hidden Then
Listbox1.Additem cell.Value
End If
Next cell


--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
Can you give me an example of how I would do this please?

"Bob Phillips" wrote:

Not unless you iterate through them and pick out the non-hidden items.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
The information I want to put in the list box is within the range B63

to
G271.
Some of the information in this range I don't want shown.
If I hide these rows is there any way of not showing them in the list

box?

"Bob Phillips" wrote:

You could set the RowSource property dynamically in code.

When would you want the different ranges?

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"enyaw" wrote in message
...
I am using the row source to populate a list box. Is there a way

to
populate
the list box using different ranges of a worksheet. eg B63:G71

and
B82:G85.








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
.AddItem list and populating combobox with created list pallaver Excel Discussion (Misc queries) 8 June 27th 08 12:36 PM
Populating List Box from SQL Server John Peach Excel Programming 3 June 21st 05 02:14 PM
populating list box with contacts GeorgeFD29 Excel Programming 1 May 6th 05 05:48 PM
populating list Wazooli Excel Programming 4 March 7th 05 10:50 PM
Populating dropdown list 2 with data depending upon what was selected in list 1 karambos Excel Programming 2 November 9th 04 05:32 PM


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