Excel VBA macro like onChange event in PHP Macro