How to determine if filters in a sheet have changed?

In an excel workbook project, how can we determine if filters on some sheets are updated?

+3
source share
2 answers

Make sure you have a formula (such as COUNT ) that includes the entire data column. In the case of Table, include the line Total .

When you change the filter, the Excel calculation event will fire due to the formula, and you can select this by pasting the following code into the sheet.

Private Sub Worksheet_Calculate()

 MsgBox "Calculation"

End Sub

, , , , - .

. , Citeria1, Criteria2, Operator, On ..

+1

Excel. , " " " ", . " ". :

  • ,
  • "= count (B: B)" "= counta (C: C)" , . , .
  • "custom" ";;;" .
  • VBA " "

Sub Worksheet_Calculate()

' ,

Sub

0

Source: https://habr.com/ru/post/1716589/


All Articles