S
s.parsley
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
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