Re: Code to make a folder an Outlook address book?
From: Sue Mosher [MVP-Outlook] (suemvp_at_outlookcode.com)
Date: 06/22/04
- Next message: Sean: "Outlook 2003 outbox troubla"
- Previous message: Craig Chang: "syncing to exchange"
- In reply to: ck: "Code to make a folder an Outlook address book?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 22 Jun 2004 08:32:51 -0400
In Outlook 2002 or later, you can set the MAPIFolder.ShowAsOutlookAB
property to True and set the display name with MAPIFolder.AddressBookName.
You would need to do this with a COM add-in or script that each user runs,
since address book settings are specific to the user, not global.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"ck" <c_kettenbach@hotmail.com> wrote in message
news:jeSBc.76252$Hw.48010@newssvr29.news.prodigy.com...
> Sorry for cross posting. Does anyone know any code to make a folder
> available as an Address book? Like when you right click a folder,
> properties, Outlook Address tab , and check the box to make the folder an
> address book? Can I assign that attribute through code when the folder is
> created? I have some code that runs against an access database and then
> creates a folder (subfolder of contacts) and populates the folder with
> contacts derived from a query result. My users are having to recheck that
> box everytime the folder is created. Any help/advise is appreciated? By
the
> way, If I name the folder the same each time will it retain the address
book
> status, maybe its a better idea to not delete the folder just delete the
> contacts in the folder and repopulate it with the query results. Thanks
in
> advance.
> ~ck
>
>
- Next message: Sean: "Outlook 2003 outbox troubla"
- Previous message: Craig Chang: "syncing to exchange"
- In reply to: ck: "Code to make a folder an Outlook address book?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|