Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help using ListBox in VBA

Does anybody knows where I can find help on using Listbox to display results
from a filter operation in Excel 2007. I want to run some filters in excel
and I want to display the results in a control Userform Listbox. And I also
want to be able to format the values in the Listbox.
If anyone can point me to a good source of information on how to accomplish
this, I will be very greatful.
Thanks
Ayo
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Help using ListBox in VBA

Add a list box (Form control)
1. If the Developer tab is not available, display it.
Display the Developer tab
A. Click the Microsoft Office Button, and then click Excel Options.
B. In the Popular category, under Top options for working with Excel, select
the Show Developer tab in the Ribbon check box, and then click OK.
NOTE The Ribbon is a component of the Microsoft Office Fluent user
interface.
2. On the Developer tab, in the Controls group, click Insert, and then under
Form Controls, click List box.


HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Ayo" wrote:

Does anybody knows where I can find help on using Listbox to display results
from a filter operation in Excel 2007. I want to run some filters in excel
and I want to display the results in a control Userform Listbox. And I also
want to be able to format the values in the Listbox.
If anyone can point me to a good source of information on how to accomplish
this, I will be very greatful.
Thanks
Ayo

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default Help using ListBox in VBA

I don't know of a place where you can get all of the possible variations of
using filtered data to populate a list box. You could use the visible cells
to create an array from which you could use the add item method or the list
method to populate the control. You can also copy the filtered range to a
permanent range in the worksheet and use the ListFillRange or RowSource
property to populate the control. Then the control must be defined as
single or multi column and as single or multi-select. And a couple of other
options.

I would suggest that you use the VBA help files to start with and try to
develop a procedure from the information you get from those tools. When you
get something put together, post back, for help from the newsgroup and post
what you have tried with an explanation of what your goal is. Someone here
will help you along.


"Ayo" wrote in message
...
Does anybody knows where I can find help on using Listbox to display
results
from a filter operation in Excel 2007. I want to run some filters in excel
and I want to display the results in a control Userform Listbox. And I
also
want to be able to format the values in the Listbox.
If anyone can point me to a good source of information on how to
accomplish
this, I will be very greatful.
Thanks
Ayo



  #4   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help using ListBox in VBA

Thanks, this is very helpful.

"JLGWhiz" wrote:

I don't know of a place where you can get all of the possible variations of
using filtered data to populate a list box. You could use the visible cells
to create an array from which you could use the add item method or the list
method to populate the control. You can also copy the filtered range to a
permanent range in the worksheet and use the ListFillRange or RowSource
property to populate the control. Then the control must be defined as
single or multi column and as single or multi-select. And a couple of other
options.

I would suggest that you use the VBA help files to start with and try to
develop a procedure from the information you get from those tools. When you
get something put together, post back, for help from the newsgroup and post
what you have tried with an explanation of what your goal is. Someone here
will help you along.


"Ayo" wrote in message
...
Does anybody knows where I can find help on using Listbox to display
results
from a filter operation in Excel 2007. I want to run some filters in excel
and I want to display the results in a control Userform Listbox. And I
also
want to be able to format the values in the Listbox.
If anyone can point me to a good source of information on how to
accomplish
this, I will be very greatful.
Thanks
Ayo




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
userform listbox cannot get listbox.value to transfer back to main sub [email protected] Excel Programming 1 May 17th 06 09:44 PM
avoiding duplicates in listbox (added from another listbox) KR Excel Programming 4 March 14th 06 08:17 PM
VBA: Creating listbox similar to the one in Pivot table (Listbox+Checkbox) modjoe23 Excel Programming 3 August 18th 05 02:35 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM


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