Run VBA code automatically after running a filter

后端 未结 3 1892
北荒
北荒 2021-01-14 11:27

I\'ve got a code written that categorizes employees along with their qualifications. In order to weed out employees with unwanted qualifications I have applied a filter to e

3条回答
  •  爱一瞬间的悲伤
    2021-01-14 11:58

    The ozgrid code you mentioned tells you that you can put your code in a worksheet_calculate event (in the worksheet module), as long as you have something that will recalculate when you change your autofilter. This something can be a subtotal formula that you can hide in your worksheet, e.g. =subtotal(3,A:A)

提交回复
热议问题