I
Ivan
Dear all,
I am writing an Excel macro to create and assign outlook task with the
following codes:
Sub createTask()
Dim objTask As Outlook.TaskItem
Set objTask = OutApp.CreateItem(olTaskItem)
With objTask
.StartDate = "05/30/2006"
.DueDate = "05/31/2006"
.Subject = "Testing Task"
.Body = "Testing Task"
.Assign
.Recipients = "Michael Lurer"
.Send
End With
Set objTask = Nothing
End Sub
'********************************
However, the program got an error at the line .Recipients = "Michael Lurer"
and the error message is "Run-time error '-2147024809(80070057)': Could not
complete the operation. One or more parameter values are not valid".
But the name of recipient is a real name and exists in the Outlook address
book. Anyone knows how to solve this problem? Thanks in advance.
Ivan
I am writing an Excel macro to create and assign outlook task with the
following codes:
Sub createTask()
Dim objTask As Outlook.TaskItem
Set objTask = OutApp.CreateItem(olTaskItem)
With objTask
.StartDate = "05/30/2006"
.DueDate = "05/31/2006"
.Subject = "Testing Task"
.Body = "Testing Task"
.Assign
.Recipients = "Michael Lurer"
.Send
End With
Set objTask = Nothing
End Sub
'********************************
However, the program got an error at the line .Recipients = "Michael Lurer"
and the error message is "Run-time error '-2147024809(80070057)': Could not
complete the operation. One or more parameter values are not valid".
But the name of recipient is a real name and exists in the Outlook address
book. Anyone knows how to solve this problem? Thanks in advance.
Ivan