Trying to run a Macro as part of a Rule in Outlook

I'm trying to run a Macro as part of a Rule in Outlook. Here's my macro:

enter image description here

I then try to add it as a rule:

enter image description here

However, when I click on "a script", nothing shows up:

enter image description here

How can I make it run the macro I've created above? Thanks!


Solution 1:

Based on my research, I found an article that mentioned "The argument must by type MailItem or MeetingItem for the subroutine", it's recommended to modify your script or try to paste it in ThisOutlookSession part directly to check if the issue has any differences.

For your reference: Outlook's Rules and Alerts: Run a Script