Macro names not available in script window

J

Jiles

I created a macro to save message details to MS Access. I want to run this
macro when the message is received based on a rule. The problem is when I
create the rule and select the run script option, none of the macros appear
in the Script window. What do I need to do to make this macro appear in the
window.
 
K

Ken Slovak - [MVP - Outlook]

Your macro should follow this type of format:

Public Sub MyMacro(Item As Outlook.MailItem)
' whatever
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top