Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to trap auto filter?

Hi there,

I am wondering if it is possible to trap the user action that happens
if a user applies or changes an auto filter, i.e. the user selects a
specific autofilter in an autofilter cell (or the user selects
'all').

None of the usual worksheet events like Calculate, Change,... are
triggered.
Is there a possibility of trapping this user interaction?

Thanks for your help or suggestions!
Philip

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How to trap auto filter?

Maybe you could add a formula like:
=subtotal(3,a2:a9999)
to an out of the way location.

The =subtotal() will reevaluate when the filter changes. Then you could tie
into the worksheet_calculate event. But I don't know a way of determining what
caused the recalc--a change in the filtering or a change to a cell that is used
in a formula????

ps. In xl2003, changing the filter criteria is enough to have excel
recalculate.



wrote:

Hi there,

I am wondering if it is possible to trap the user action that happens
if a user applies or changes an auto filter, i.e. the user selects a
specific autofilter in an autofilter cell (or the user selects
'all').

None of the usual worksheet events like Calculate, Change,... are
triggered.
Is there a possibility of trapping this user interaction?

Thanks for your help or suggestions!
Philip


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to trap auto filter?

hi dave,

thanks for your suggestion! this seems to work, so thanks for this
workaround.
btw, i am using xl 2002, which does not trigger worksheet_calculate
upon a filter change.

so thanks again!
philip

On 7 Aug., 04:00, Dave Peterson wrote:
Maybe you could add a formula like:
=subtotal(3,a2:a9999)
to an out of the way location.

The =subtotal() will reevaluate when the filter changes. Then you could tie
into the worksheet_calculate event. But I don't know a way of determining what
caused the recalc--a change in the filtering or a change to a cell that is used
in a formula????

ps. In xl2003, changing the filter criteria is enough to have excel
recalculate.


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
DataFilterAuto Filter in excel 2007? TIJ New Users to Excel 2 November 13th 08 03:28 AM
Excel 2007 Auto Filter Filter Django Excel Discussion (Misc queries) 2 September 9th 08 10:52 PM
Limit filter options in Auto Filter lista72 Excel Discussion (Misc queries) 1 January 23rd 08 04:01 PM
ranging the filter cells when doing auto filter thread Excel Programming 8 April 25th 07 11:08 PM
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


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