Solved

Setting MAPIfolder properties in Outlook's VBA

Posted on 2002-05-16
4
840 Views
Last Modified: 2007-12-19
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
Comment
Question by:efontaine
  • 2
4 Comments
 
LVL 8

Expert Comment

by:jessnjeff
ID: 7014905
Dim onMAPI As NameSpace

Dim oFolder As MAPIFolder

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

Author Comment

by:efontaine
ID: 7014954

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

Expert Comment

by:jessnjeff
ID: 7015019
ouch--sorry!

0
 
LVL 16

Accepted Solution

by:
Neo_mvps earned 100 total points
ID: 7016017
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question