A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to get connected contacts in appointment item?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 14th 06, 08:54 AM posted to microsoft.public.outlook.program_vba
Dikbill
external usenet poster
 
Posts: 16
Default How to get connected contacts in appointment item?

Ken,

No worry's :-)
Yesterday late in the afternoon I've solved the problem!

Item is the filtered Appointment item with some contacts linked to it.
Item = olns.GetItemFromID(myAppt.EntryID, StoreID)

Dim iLinkItems As Integer = 0

Dim olinkitem As Outlook.Link = Nothing

For iLinkItems = 1 To Item.Links.count

olinkitem = Item.Links.Item(iLinkItems)

MsgBox("EntryID= " & olinkitem.Item.EntryID & " FullName= " &
olinkitem.Item.FullName)

Next

With this code I can get all data from the linked contacts!
The most important is the EntryID for identification :-)

Thanx for your help and succes with your projects!
You've save me a great deal of search time ;-)

Dikbill, The Netherlands




"Ken Slovak - [MVP - Outlook]" schreef in bericht
...
You're correct, I tested this here with a contact item so that fooled me.

I'd have to say after looking at it again and reviewing some of my old
code that worked with the Links collection that the only thing you're
going to be able to get back using the Outlook object model is the name
property of the link item.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dikbill" wrote in message
. ..
Ken,

Thnx but

olContact = Item.Links.Item(1).Parent

returns the appointment item where the contacts are connected from
so olContact will contain the appointment object ;-)

Any suggestions??

Tx

Dikbill, The Netherlands,




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to create new calendar item appointment Luego Outlook - General Queries 0 June 15th 06 11:05 PM
Outlook 2003 gets not connected error but status is connected [email protected] Outlook - General Queries 0 May 28th 06 01:28 AM
How do I add an item that isn't an appointment? smags Outlook - Calandaring 1 March 22nd 06 06:35 PM
Accessing Contacts in an Appointment Item... Zio Gian Outlook and VBA 0 February 24th 06 12:29 AM
How to find Appointment Item by EntryID? deko Outlook and VBA 2 January 23rd 06 07:15 PM


All times are GMT +1. The time now is 04:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.