Solved

Setting MAPIfolder properties in Outlook's VBA

Posted on 2002-05-16
4
842 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 …
This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

615 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