Outlook VBA, Macros not appearing in "Run a script" menu

bamblack

Board Regular
Joined
Aug 15, 2011
Messages
208
Hi all,

I've written a bit of code:

Code:
Option Explicit
Sub Run(msg As MailItem)

'Miscellaneous code here

End Sub

However, when I try to set up a rule so that it will run this code when a certain email is received, the subroutine isn't showing up in the "Run a script" menu. I have the code saved in it's own standard module. I've been trying to figure it out for the past hour or so and haven't been able to make any headway on it. I'm just jumping into Outlook VBA, so any suggestions on how to fix it would be greatly appreciated!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You can either add breakpoints, or create a test sub that calls your processing sub.
 
Upvote 0

Forum statistics

Threads
1,225,613
Messages
6,186,004
Members
453,334
Latest member
Prakash Jha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top