how do i set up custom rule actions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using Outlook 2003 and need to know how to create custom rule actions.
Can anyone help?
 
Custom actions are .dll components built with Extended MAPI and C++ or Delphi in such a way that they can be invoked by Rules Wizard. See http://www.slipstick.com/addins/custom.htm for code samples and commercial actions.

If you are using Outlook 2002 or later, you can create a rule with a "run a script" action that invokes not a "script" but a public VBA subroutine with a MailItem or MeetingItem argument, e.g.

Public Sub MyRuleScript(ThisMessage as MailItem)
MsgBox "The subject of this message is " & ThisMessage.Subject
' other code to work with ThisMessage
End Sub

See http://www.outlookcode.com/d/code/zaphtml.htm#ol2002 for a more complete example.
 

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

Back
Top