Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 193
Default filter using VBA

Hi,

Is it possible to use VBA to filter a worksheet? ie press a button which
will filter a worksheet so that only those rows with columnA = 'yes' are
displayed?

thanks for any help
cheers
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default filter using VBA

Record a macro while doing it manually and you have it.

HTH. Best wishes Harald

"confused" skrev i melding
...
Hi,

Is it possible to use VBA to filter a worksheet? ie press a button which
will filter a worksheet so that only those rows with columnA = 'yes' are
displayed?

thanks for any help
cheers



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default filter using VBA

Just to supplement, what you will do manually will select the top left cell
of your data in the header row and do

Data=Filter=Autofilter
select the dropdown in column A and select "yes"

It isn't clear that you know how to filter manually - but if you do, then
you can ignore this.

--
Regards,
Tom Ogilvy


"Harald Staff" wrote in message
...
Record a macro while doing it manually and you have it.

HTH. Best wishes Harald

"confused" skrev i melding
...
Hi,

Is it possible to use VBA to filter a worksheet? ie press a button which
will filter a worksheet so that only those rows with columnA = 'yes' are
displayed?

thanks for any help
cheers





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
Filter PivotTable dropdown items to match report filter Catherine D Excel Discussion (Misc queries) 1 August 16th 08 12:12 AM
Copy only visible cells after filter is applied/ sum after filter MAM Excel Worksheet Functions 0 April 9th 08 04:09 AM
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM
Excel auto filter doesn't recoginize case - won't filter AA from A Mikey Excel Discussion (Misc queries) 1 September 29th 05 08:18 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM


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