Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Contacts / November 2007

Tip: Looking for answers? Try searching our database.

Contacts Linked to Other Items Through Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
consulttech2004@hotmail.com - 28 Nov 2007 15:55 GMT
We would like to add Contacts through VBA code.  Easy enough.  We
would also like to add Tasks, Calendar Items, Notes, and Journal Items
through VBA code that are related to the contacts in question.  We are
using Outlook 2003.

We can get as far as adding the Contacts, and then we can add Tasks,
because Tasks have a read/write property of ContactNames, so if I
create a Contact and name it after myself, relating a task to my new
contact takes one line of code:

tsk1.ContactNames = "David"

Doing the same with a Journal item should be easy, but it's not,
because doing this:

jrn1.ContactNames = "David"

doesn't work, i.e. the journal entry is created, but it does not show
up in the Contact's activity screen.

Appointment items and Note items do not seem to have a similar
"ContactNames" property.

So the question is this:  Is there a way to create Tasks,
Appointments, Notes, and Journal items through VBA code that relate
back to contacts?  Any code samples would be appreciated greatly!
Thank you!

David
Russ Valentine [MVP-Outlook] - 28 Nov 2007 21:58 GMT
You should post this to the programming group.
Signature

Russ Valentine
[MVP-Outlook]

> We would like to add Contacts through VBA code.  Easy enough.  We
> would also like to add Tasks, Calendar Items, Notes, and Journal Items
[quoted text clipped - 25 lines]
>
> David
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.