I cannot see my VBA macro in 'run a script' selection box

前端 未结 2 449
梦谈多话
梦谈多话 2020-12-08 22:58

I copied the following code in my oulook VBE, from one of the VBA communities and amended it as per my need. I can run it using F5 and F8. Now I would like to run this macro

2条回答
  •  时光说笑
    2020-12-08 23:51

    To be recognized as proper script macro for the Rule Wizard, the macro has to have the expected parameter:

    Sub myRuleMacro(item as Outlook.MailItem)
    

    MSDN article (still valid for Outlook 2007/2010/2013/2016)

    Related article

    Article about enabling run-a-script rules otherwise disabled due to security reasons
    (registry key EnableUnsafeClientMailRules).

提交回复
热议问题