The only way to do this is via an event listener, which can be VERY difficult to control and can cause greater instability with Revit. You’re far better served to move to a full add-in if you want stability.
This thread here has some more info on setting one of these up for renumbering views on sheets, but proceed with extreme caution.