Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA question - Combo box showing result of filtering

Hi,

I need to Show, in combo box the list of data contained in a column, i
the same way that excel shows the list when applying autoFilter

Thanks

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default VBA question - Combo box showing result of filtering

one way to do it would be this (untested), assuming the data is in column 1

dim rng1 as range, cell as range
Set rng1 = intersect(activesheet.usedrange,
columns(1).SpecialCells(xlVisible))
userform1.combobox1.clear
for each cell in rng1
userform1.combobox1.additem cell.value
next

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel


"ajliaks " wrote in message
...
Hi,

I need to Show, in combo box the list of data contained in a column, in
the same way that excel shows the list when applying autoFilter

Thanks.


---
Message posted from http://www.ExcelForum.com/



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
Sum data showing when filtering a pivot table tarabull Excel Discussion (Misc queries) 0 March 26th 09 01:28 PM
subtotal not showing after filtering list Karen Excel Discussion (Misc queries) 1 June 6th 08 06:48 PM
Filtering a column, where it stopped showing records Reid_co Excel Worksheet Functions 1 September 8th 06 04:18 PM
Combo Box Filtering Macro Jon Excel Discussion (Misc queries) 0 March 23rd 05 07:03 PM
Combo Box Filtering Macro Jon Excel Discussion (Misc queries) 0 March 23rd 05 06:59 PM


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