Hi! You can add this code to the Worksheet Object to run the macro automatically when cells N11 or N12 are changed:
![]()
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$N$11" Or Target.Address = "$N$12" Then If Range("N11").Value > Range("N12").Value Then ActiveWorkbook.Save MsgBox "The book has been saved!" End If End If End Sub
Bookmarks