Current Item

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a macro that will be run from an individual contact window. I need this macro to create a reminder in calendar and a new task. So far so good, but I need to pull information from the contact into the task and the reminder and I don't know how to access the current item's properties. I also don't know how to link the task to the contact. Please assist.
 
If the form for the current Contact is displayed, you can access it by
setting a ContactItem object to ActiveInspector.CurrentItem.
To link the Task to the Contact, add the ContactItem object variable as
a parameter to the Add method for your TaskItem variable's Links collection
property:
myTask.Links.Add myContact

Eric Legault - B.A, MCP, MCSD, Outlook MVP
 
Back
Top