SOLVED

Can I use VBA in Rules in Outlook 2016 (365)

%3CLINGO-SUB%20id%3D%22lingo-sub-389115%22%20slang%3D%22en-US%22%3ECan%20I%20use%20VBA%20in%20Rules%20in%20Outlook%202016%20(365)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-389115%22%20slang%3D%22en-US%22%3E%3CP%3EI%20did%20upgrade%20from%20Outlook%202010%20to%20Outlook%202016%20(365)%3C%2FP%3E%3CP%3EThe%20run-a-script-rule-action%20I%20got%20back%20after%20adding%3A%20%22%3CSPAN%3EEnableUnsafeClientMailRules%22%20to%20the%20register%3C%2FSPAN%3E.%3C%2FP%3E%3CP%3EBut%20the%20VBA%20script%20is%20skipped%20without%20any%20warning.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20other%20commends%20in%20the%20same%20rule%20are%20working%20perfect.%3C%2FP%3E%3CP%3E%3CSPAN%3EIs%20it%20still%20possible%20to%20run%20VBA%20in%20rules%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20yes%2C%20what%20can%20I%20do%2C%20to%20get%20it%20work%20again%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EMy%20email%20contains%20an%20order%20from%20my%20website.%20I%20am%20saving%20this%20to%20a%20file%20in%20a%20specific%20folder%2C%20so%20my%20Local%20MS%20Access%20(365)%20application%26nbsp%3Bcan%20import%20this%20automatically%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-389115%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOutlook%20for%20Windows%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-389751%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20use%20VBA%20in%20Rules%20in%20Outlook%202016%20(365)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-389751%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F75%22%20target%3D%22_blank%22%3E%40Diane%20Poremsky%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20a%20lot.%20It%20was%20indeed%20the%20macro%20security.%20I%20didn't%20see%20it%20before.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-389413%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20I%20use%20VBA%20in%20Rules%20in%20Outlook%202016%20(365)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-389413%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F308624%22%20target%3D%22_blank%22%3E%40Scooter_857%3C%2FA%3E%26nbsp%3BAs%20long%20as%20your%20macro%20security%20is%20correct%20(low%20or%20signed%2C%20with%20in%20the%20project%20signed)%2C%20scripts%20will%20run.%20Do%20you%20have%20other%20actions%20in%20the%20rule%3F%20Scripts%20do%20best%20when%20they%20are%20the%20only%20action.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I did upgrade from Outlook 2010 to Outlook 2016 (365)

The run-a-script-rule-action I got back after adding: "EnableUnsafeClientMailRules" to the register.

But the VBA script is skipped without any warning. 

The other commends in the same rule are working perfect.

Is it still possible to run VBA in rules?

If yes, what can I do, to get it work again?

My email contains an order from my website. I am saving this to a file in a specific folder, so my Local MS Access (365) application can import this automatically

2 Replies
Highlighted
Best Response confirmed by Scooter_857 (New Contributor)
Solution

@Scooter_857 As long as your macro security is correct (low or signed, with in the project signed), scripts will run. Do you have other actions in the rule? Scripts do best when they are the only action. 

@Diane Poremsky 

Thanks a lot. It was indeed the macro security. I didn't see it before.