task automation

S

Salvador

I am doing outlook task automation from excel and everything goes ok.
part of my code follows:

Private Sub TaskItem_Click()
Dim olApp As Outlook.Application
Dim olNewTask As TaskItem

Set olApp = CreateObject("Outlook.Application")
Set olNewTask = olApp.CreateItem(olTaskItem)

With olNewTask
.StatusUpdateRecipients = "(e-mail address removed); (e-mail address removed)"
.....
.Display
End With

End Sub

However I require the task to be generated in an specific public folder.
How can that be done?
 
K

Ken Slovak - [MVP - Outlook]

Get a handle to that MAPIFolder and use its Items.Add method.
 

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

Top