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

Enumerating another user's contacts in Outlook 2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 27th 06, 02:00 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Mike
external usenet poster
 
Posts: 14
Default Enumerating another user's contacts in Outlook 2003

Merry Christmas everyone,

A manager in our organisation needs to see a report, created in Excel, which
is generated from some Outlook "contacts" fields. The difficulty is that
these Outlook "contacts" fields exist in another users account, which the
manager does have access to. The contacts are leads, which are only
applicable to this specific user and therefore can't be made public (there
are a lot of contacts).

So my question is this - is it possible to make a macro for the manager to
enumerate through another user's contacts in Outlook 2003, such that the
data can be read for the Excel report generation?

Any example code would be much appreciated, also!

Warm Regards,

Mike


Ads
  #2  
Old December 27th 06, 02:47 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Enumerating another user's contacts in Outlook 2003

You can use NameSpace.GetSharedDefaultFolder to get the other user's default
Contacts folder and then you can iterate it's Items collection. You must
create a Recipient object that is passed to the GetSharedDefaultFolder that
represents the store owner. See the Help in the Object Browser on that
method.

--
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


"Mike" . wrote in message ...
Merry Christmas everyone,

A manager in our organisation needs to see a report, created in Excel,
which is generated from some Outlook "contacts" fields. The difficulty is
that these Outlook "contacts" fields exist in another users account, which
the manager does have access to. The contacts are leads, which are only
applicable to this specific user and therefore can't be made public (there
are a lot of contacts).

So my question is this - is it possible to make a macro for the manager to
enumerate through another user's contacts in Outlook 2003, such that the
data can be read for the Excel report generation?

Any example code would be much appreciated, also!

Warm Regards,

Mike


  #3  
Old December 27th 06, 02:55 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Enumerating another user's contacts in Outlook 2003

Yes, you can use the Namespace.GetSharedDefaultFolder to return the other user's folder, assuming the manager has read permission on the folder.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Mike" . wrote in message ...
Merry Christmas everyone,

A manager in our organisation needs to see a report, created in Excel, which
is generated from some Outlook "contacts" fields. The difficulty is that
these Outlook "contacts" fields exist in another users account, which the
manager does have access to. The contacts are leads, which are only
applicable to this specific user and therefore can't be made public (there
are a lot of contacts).

So my question is this - is it possible to make a macro for the manager to
enumerate through another user's contacts in Outlook 2003, such that the
data can be read for the Excel report generation?

Any example code would be much appreciated, also!

Warm Regards,

Mike


  #4  
Old January 8th 07, 05:08 PM posted to microsoft.public.office.developer.outlook.vba,microsoft.public.outlook.program_vba
Mike
external usenet poster
 
Posts: 14
Default Enumerating another user's contacts in Outlook 2003

Thanks very much Ken & Sue,

Hope you both had a great New Year :-)

Mike


 




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
Saving Another user's Distribution List to my Outlook Littlebear Outlook - Using Contacts 4 November 28th 06 09:27 PM
Exporting Other User's Contacts Delores Elias Outlook - Using Contacts 7 August 24th 06 01:44 PM
Accessing a user's Outlook Calendar via a sharepoint webpart possible? Jack Outlook - Calandaring 0 May 24th 06 07:45 AM
can you merge my contacts and another user's? Pridey11 Outlook - Using Contacts 5 March 23rd 06 03:13 PM
Even with transform addition, user's don't get Outlook Address Sue Mosher [MVP-Outlook] Outlook - Using Contacts 0 January 20th 06 05:42 PM


All times are GMT +1. The time now is 06:45 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.