ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Execute Macro When any Built-in Autofilter Button is Pushed (https://www.excelbanter.com/excel-programming/355787-execute-macro-when-any-built-autofilter-button-pushed.html)

Jay

Execute Macro When any Built-in Autofilter Button is Pushed
 
Excel 2003: Is anyone aware of a procedure to execute a macro when any drop
down button in an autofiltered list is pushed?

Specifically, I have locked all cells in a database range on a worksheet,
applied an autofilter to the database range, and protected the worksheet.
Upon pushing the built-in autofilter button near each field name, the
protected database filters correctly, but will not sort when the 'Sort
Ascending' or 'Sort Decending' choices are selected. I'd like to
automatically unprotect the sheet temporarily when an autofilter button is
pushed - so that a sort can occur - and then re-protect the sheet when the
sort is finished.

--
Thanks,
Jay


All times are GMT +1. The time now is 09:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com