![]() |
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 |
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 |
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. |
All times are GMT +1. The time now is 10:05 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com