In the 2007 help files examples provided for onaction syntax look like
.onaction = "DoAction"
Recently my computer powered down inelegantly - no other damage except that a macro in the personal file containing an 'onaction' statement failed on that line and even closed that file down. If you manually opened the file then debug launched at the problem line.
So decided to re-install Office which subsequently did but to little avail. Then searched the web for 'vba onaction fault' topics and came across pages that suggested that you could call functions and pass parameters ie
.onaction = "=DoAction()"
By calling the procedure as a function I have now resolved the problem but my question is still WHY?
Thanks for any suggestions
Ken