Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Scripting Autofilters..

I've been working with scripting an autofilter.

It appears to me that to apply filters, etc, you need to do that from the
range object's autofilter property.

I had thought you would be able to dimension an object as an autofilter, set
that object to an autofilter, and then work through that.

Is that incorrect?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Scripting Autofilters..

No, you apply a filter to a range.

Dim aFilt as Autofilter
Range("A1").CurrentRegion.AutoFilter Field:=1, Criteria1:="C"
set aFilt = Activesheet.AutoFilter

However, the aFilt is an autofilter *object*. You can use it to examine
what the current settings of the items in the Filters collection are, but to
set those filters, you use the autofilter *method* of the range object.

--
Regards,
Tom Ogilvy


"mark" wrote in message
...
I've been working with scripting an autofilter.

It appears to me that to apply filters, etc, you need to do that from the
range object's autofilter property.

I had thought you would be able to dimension an object as an autofilter,

set
that object to an autofilter, and then work through that.

Is that incorrect?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Scripting Autofilters..

ok.

I think you are confirming what I thought to be the case, though perhaps I
didn't state it well.

thanks.

"Tom Ogilvy" wrote:

No, you apply a filter to a range.


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
AutoFilters Joli Excel Worksheet Functions 1 March 21st 06 09:14 PM
How to set up AutoFilters? MS Suzanne Excel Worksheet Functions 1 June 30th 05 03:53 AM
autofilters Diego Villaseñor Fernández Excel Worksheet Functions 0 January 13th 05 11:27 PM
VBA and Autofilters Frank Haverkamp Excel Programming 2 January 10th 04 01:53 AM
Userforms and autofilters - Autofilters don't seen to work with userform No Name Excel Programming 3 August 28th 03 05:42 PM


All times are GMT +1. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"