After you change the macro security settings, you must restart Outlook. Did you do that?
What about a simple procedure with just a MsgBox statement? Does that run?
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
wrote in message ups.com...
I'm trying to use the VBA script below to create a TaskItem from an
email when a particular one of my rules gets triggered. However, it
appears as if the script is never run. Any thoughts? I've tried
tweaking various security settings but this hasn't appeared to help.
Public Sub CreateTaskForEmail(eMail As MailItem)
Dim Task As Outlook.TaskItem
Set Task = ThisOutlookSession.CreateItem(olTaskItem)
'Create a task that will remind me to look at it tomorrow
With Task
.Subject = eMail.Subject
.Body = eMail.Body
.DueDate = DateTime.DateAdd("d", 1, Now)
.ReminderSet = True
.ReminderTime = "10:00"
.Save
End With
End Sub