I tested this code in SolidWorks 2013, 2014, and 2015 and it worked for me. See attached for the macro I used. Note that it was created in 2014, so if you're using 2013 or earlier then you might need to change the references in Tools-->References (while editing the macro).
Be sure to run main.mMain() first. If it is not running from Tools-->Macro-->Run, then try from Tools-->Macro-->Edit.
notify.swp.zip 11.3 KB