Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook Address Book

Status
Not open for further replies.

vbajock

Programmer
Jun 8, 2001
1,921
US
I've created an app that creates Contact items in a Public Folder from the accounting system Customer Master File. Everything works great, but I have one problem. I can't find the property to desginate the folder as an Outlook Address book. Anyone out there know how?
Thanks
Kirk
 
What are you using to create the folder, CDO (MAPI) objects or Outlook objects? There are properties of the MAPIFolder object in Outlook and the Folder object in MAPI that will help you, if you want to find them make sure you have a reference set to the appropriate library, open the Object Browser, and search on 'Folder'.
 
I am Outlook 9.0 objects. I have checked the folder properties in the MS documentation and the properties of a folder in the Object browser, and cannot find any property to set to indicate that the folder is an Outlook address book. I am not new at this.
 
From the Help file for Add Method (Folders Collection). Maybe you just didn't realize that Contacts is an Address book??


Creates a new folder in the Folders collection, and returns the new folder as a MAPIFolder object.

Syntax

objFolders.Add(Name, [Type])

objFolders Required. An expression that returns a Folders object.

Name Required String. The display name for the new folder.

Type Optional Long. The Outlook folder type for the new folder. If the folder type is not specified, the new folder will default to the same type as the folder in which it is created. Can be one of the following OlDefaultFolders constants: olFolderCalendar(9), olFolderContacts(10), olFolderDrafts(16), olFolderInbox(6), olFolderJournal(11), olFolderNotes(12), or olFolderTasks(13). (The constants olFolderDeletedItems(3), olFolderOutbox(6), and olFolderSentMail(5) cannot be specified for this argument.)
 
Perhaps I am not being clear enough. Let me try by explaining a fundmental Outlook fact. You can create folders all day and night, but the user cannot use them as an address book in Outlook, for the purpose of sending email, unless he right clicks the folder, chooses properties, chooses the Outlook address tab and clicks a little box that says "use this folder as an Outlook address book". I want my program to do that for the user, so he doesn't have to. In other words, after creating the folder, in the manner you so elegantly describe above, I want to tell the folder to be an Outlook address book by setting a property of this folder. There seems to be no property setting for this task.

If anyone out there knows of a way to do this, I would appreciate the tip. This is not a "beginner" question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top