[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 867
  • Last Modified:

Setting MAPIfolder properties in Outlook's VBA

I'm trying to set a CONTACTS folder property : "show folder as an email address book". This can easily be done manualy in the folder's properties, under the "Outlook Address Book" tab. I could not find a way to do it in an Outlook 2000 VBA macro.

Please help !

Thanks in advance,

EFontaine
0
efontaine
Asked:
efontaine
  • 2
1 Solution
 
jessnjeffCommented:
Dim onMAPI As NameSpace

Dim oFolder As MAPIFolder

Set onMAPI = Application.GetNamespace("MAPI")
Set oFolder = onMAPI.GetDefaultFolder(olFolderContacts)
oFolder.ShowAsOutlookAB = True
0
 
efontaineAuthor Commented:

Too good to be true!

This feature is available in outlook 2002

As I said initialy, we're using outlook 2000

Is there any other way I can do this ?

Thanks

EFontaine
0
 
jessnjeffCommented:
ouch--sorry!

0
 
Neo_mvpsCommented:
No.  There are no methods/properties in the Outlook 2000 or Collaboration Data Objects com libraries that will allow you to mark a contact folder for use as an address book.
0

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now