Code to make a folder an Outlook address book?

C

ck

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
 
S

Sue Mosher [MVP-Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top