I want to run a rule from a macro/button in ribbon instead of going through all the clicks needed to "Run rules now" manually. Using Outlook 2016.
My Outlook rule is stored in the second store and not the default store.
The MsgBox is prompted, so the rule is found but it is not executed, and the e-mails in target are not moved.
Sub RunRule()
Dim rules As Outlook.rules
Set rules = Application.Session.Stores(2).GetRules()
rules.Item("kundeordre").Execute ShowProgress:=True
MsgBox rules.Item("kundeordre")
End Sub

For rules in a non-default store, specify the folder.