by Sisyphus » Mon Aug 27, 2012 4:16 am
Hi,
I checked the code I posted and confirm that it works perfectly. However, one should bear in mind that it is triggered by the worksheet's Calculate event which will not occur if there isn't anything to calculate in the worksheet. If the worksheet where it is to be deployed has no formulas I would, indeed, have to come up with another solution.
By creating code that won't do anything while the selected cell isn't hidden, and very little if it is, I have avoided the hassle of keeping track of the filter. Charles' code, originally my intention, too, could have been incorporated in the present design. However, upon review, I have decided against this option. It requires setting of a range and the resulting code would be more voluminous that what he have. A likely advantage in speed is too insignificant to consider.
Therefore I have not amended the code already posted above.
Have a great day!
Sisyphus
I do this for "honour and country" - much less of the latter, actually.
If I helped you, award points, plenty of them.
If I bored you, deduct points for being too long-winded. (I know, :lol)