You can't get the shared calendars unless you know the alias names of the
available recipients. Plus you would need permissions to open their
calendars.
You can read the Global Address List, which is one of your AddressLists.
Open the AddressLists collection and get the GAL AddressList. You can then
iterate that list and get the names of everyone available. You can then try
opening each calendar using the name you just got and creating a Recipient
object for that name. That of course doesn't guarantee that you will
succeed, you need permissions, so be prepared to handle errors when you try
to open the folder using GetSharedDefaultFolder.
--
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
wrote in message
ps.com...
You didn't answer my question about what you mean by "detect the user".
And
what version of Outlook are you programming against?
I meant that I want to see what users there is in the "users list" or
whatever it is. When I add a user to the recipients collection, I would
not need to use the whole name. For example, If I in outlook have the
main user called Robert Andersson, I would just have to use Recipient
Rec = (Recipient)oNS.CreateRecipient("Robert"). If I would like to see
the name for this user, I could use Rec.Name and it would display
Robert Andersson. So when I saw that this was possible I was sure that
this names must be stored somewhere, and thats what I need to find out
how to get those names. And I use Outlook 2003.