#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default AutoFilter

Hello,

I am trying to write a piece of code that filters a data set on various
values. I am looping through each value to be filtered first. If there are
items returned from the filter then I want to only copy the filtered items to
a new worksheet without the column headings and also compute an average for a
particular column of values from the filtered range. Any ideas or thoughts?

Thanks,
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default AutoFilter

Is this something where you would normally use Excel's built-in
autofilter - if so then using this in your code, rather than looping
through each of the rows, will be much quicker (if you have lots of
criteria then the autofilter route isn't so hot)

J




On 31 May, 13:37, Mike wrote:
Hello,

I am trying to write a piece of code that filters a data set on various
values. I am looping through each value to be filtered first. If there are
items returned from the filter then I want to only copy the filtered items to
a new worksheet without the column headings and also compute an average for a
particular column of values from the filtered range. Any ideas or thoughts?

Thanks,
Mike



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default AutoFilter

Yes, I would normally be using the Autofilter command witin Excel. I intened
on using the autofilter in my code. The loop will actually be used since I
have about 12 different filter criteria values. I hope this helps. Thanks.

"WhytheQ" wrote:

Is this something where you would normally use Excel's built-in
autofilter - if so then using this in your code, rather than looping
through each of the rows, will be much quicker (if you have lots of
criteria then the autofilter route isn't so hot)

J




On 31 May, 13:37, Mike wrote:
Hello,

I am trying to write a piece of code that filters a data set on various
values. I am looping through each value to be filtered first. If there are
items returned from the filter then I want to only copy the filtered items to
a new worksheet without the column headings and also compute an average for a
particular column of values from the filtered range. Any ideas or thoughts?

Thanks,
Mike




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default AutoFilter

See
http://www.rondebruin.nl/copy5.htm

See the tips below the first example

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Mike" wrote in message ...
Yes, I would normally be using the Autofilter command witin Excel. I intened
on using the autofilter in my code. The loop will actually be used since I
have about 12 different filter criteria values. I hope this helps. Thanks.

"WhytheQ" wrote:

Is this something where you would normally use Excel's built-in
autofilter - if so then using this in your code, rather than looping
through each of the rows, will be much quicker (if you have lots of
criteria then the autofilter route isn't so hot)

J




On 31 May, 13:37, Mike wrote:
Hello,

I am trying to write a piece of code that filters a data set on various
values. I am looping through each value to be filtered first. If there are
items returned from the filter then I want to only copy the filtered items to
a new worksheet without the column headings and also compute an average for a
particular column of values from the filtered range. Any ideas or thoughts?

Thanks,
Mike




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
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
How to Sort within AutoFilter with Protection on (and AutoFilter . giblon Excel Discussion (Misc queries) 1 February 16th 06 12:23 PM


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