Save task

  • Thread starter Thread starter Marc
  • Start date Start date
M

Marc

Hi,
This is my requirement, when I save a task in MSOutlook
It should run my own macro to do a process.
How do I call my macro when saving a task.
Pls help..
 
Assuming the task has been opened, you get a handle to the item from the
Inspectors.NewInspector() event by using Inspector.CurrentItem. In this case
that would be a TaskItem. You then handle the item.Close() or
Inspector.Close() event for that item and call your code there.
 
Thanks Ken
But I added a macro like this

Public WithEvents myOlItems As Outlook.Items

Private Sub Application_Startup()
Call Initialize_handler
End Sub

Public Sub Initialize_handler()
Set myOlItems =
Application.GetNamespace("MAPI").GetDefaultFolder(13).Items
End Sub

Private Sub myOlItems_ItemAdd(ByVal Item As Object)
MsgBox ("New Task Added..")
End Sub

Is this correct??
 

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

Back
Top