Are you referring to a "run a script" action attached to an Outlook rule?
The message that triggers the rule is represented by the MailItem argument
for the VBA procedure, e.g.:
Sub RunAScriptRuleRoutine(MyMail As MailItem)
Dim strID As String
Dim olNS As Outlook.NameSpace
Dim msg As Outlook.MailItem
strID = MyMail.EntryID
Set olNS = Application.GetNamespace("MAPI")
Set msg = olNS.GetItemFromID(strID)
MsgBox msg.Body
Set msg = Nothing
Set olNS = Nothing
End Sub
For Outlook VBA basics, see
http://outlookcode.com/article.aspx?id=49
For another example of a "run a script" rule actions, see:
http://www.outlookcode.com/codedetail.aspx?id=1494
CAUTION: Using this technique has been known to result in corrupt VBA code.
Be sure to export your code modules or back up the VBAProject.otm file.
Sue Mosher
"luis_a_roman " <u41449@uwe> wrote in message
news:9da901bb94435@uwe...
> I have a run script in outlook. Want to read the message including the
> content for the message that trigger the script. How can I accomplish
> this?
> Guidance and/or sample code will be appreciated.