How to run VBA code when a cell changes?

I want to add VBA code when the value in the cell changes.

I already tried Worksheet_Change()as described in Contextures, however, this will not work: it only works when the user changes the value. I want to run it whenever the value changes, that is, whenever the spreadsheet is recounted.

Any ideas?

+3
source share
1 answer
Private Sub Worksheet_Calculate()
   MsgBox "Something recalculated", vbOKOnly, "Testing Actions"

End Sub
+5
source

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


All Articles