ParaDiddle
10-02-2010, 04:42 PM
I have a macro with code:
Sub KIKProc(msg as MailItem)
The problem is that I can't get it to run or debug it with the "msg as MailItem" parameter. If I remove that parameter, it runs in debug mode but then I don't know how to get the active email. I'm running his macro with a rule, so I need to pass in or get a reference to the email that the rule is being run on etc....
The macro doesn't show in my macro list with the parameter in the sub definition but it does show in my macro list without it.
Any help would be greatly appreciated. I'm using Outlook 2010.
Sub KIKProc(msg as MailItem)
The problem is that I can't get it to run or debug it with the "msg as MailItem" parameter. If I remove that parameter, it runs in debug mode but then I don't know how to get the active email. I'm running his macro with a rule, so I need to pass in or get a reference to the email that the rule is being run on etc....
The macro doesn't show in my macro list with the parameter in the sub definition but it does show in my macro list without it.
Any help would be greatly appreciated. I'm using Outlook 2010.