![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Outlook 2003. I am experimenting trying to access fields in my contacts. I
have the following code. I can for instance reference the contact field "FullName" using "itm.FullName" However, how do I access fields like "Home Phone"? "itm.[Home Phone]" does not work. Thanks for the help. Dim olApp As New Outlook.Application Dim olNS As Outlook.Namespace Dim ctFolder As Outlook.MAPIFolder Dim ctFolderItems As Outlook.Items Dim iterateCtItems As Integer Dim countCtItems As Integer Dim IC As Integer Dim Criteria As String Dim itm As Object On Error Resume Next Set olNS = olApp.GetNamespace("MAPI") Set ctFolder = olNS.Folders("Public Folders") Set ctFolder = ctFolder.Folders("All Public Folders") Set ctFolder = ctFolder.Folders("Good News Contacts") Set ctFolderItems = ctFolder.Items countCtItems = ctFolderItems.Count For Each itm In ctFolderItems DoEvents debug.print itm.FullName Next End Sub -- Dr. Doug Pruiett Good News Jail & Prison Ministry www.goodnewsjail.org |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
changing info in contact fields | fowlriverjoe | Outlook - Using Contacts | 1 | February 20th 06 10:29 PM |
Some fields cannot be edited on "All Fields" tab on Contact forms | BR | Outlook - Using Contacts | 1 | February 19th 06 07:54 PM |
Dozens of custom contact fields, import into Outlook? Possible? | [email protected] | Outlook - Using Contacts | 2 | February 13th 06 05:02 PM |
Import Contact Data for certain fields only - update not replace entire contact | Pennycook | Outlook - Using Contacts | 4 | January 19th 06 06:07 AM |
How do I control printing of the fields in an Outlook Contact? | Sue Mosher [MVP-Outlook] | Outlook - Using Contacts | 0 | January 18th 06 05:06 PM |