A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Personal Address Book Details



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 23rd 07, 08:40 PM posted to microsoft.public.outlook.program_vba
ABM
external usenet poster
 
Posts: 5
Default Personal Address Book Details

I am using this code to access information in a Personal Address Book

iRow = 0
For Each oAddressEntry In oAddressList.AddressEntries
If oAddressEntry.DisplayType = 5 Then
iRow = iRow + 1
oWorksheet.Cells(iRow, 1) = oAddressEntry.Name
oWorksheet.Cells(iRow, 1).Font.Bold = True
For Each oMember In oAddressEntry.Members
iRow = iRow + 1
oWorksheet.Cells(iRow, 1) = oMember.Name
oWorksheet.Cells(iRow, 2) = oMember.Address
Next
Else
iRow = iRow + 1
oWorksheet.Cells(iRow, 1) = oAddressEntry.Name
oWorksheet.Cells(iRow, 1).Font.Bold = True
oWorksheet.Cells(iRow, 2) = oAddressEntry.Address
End If
Next

Can't figure out how to access details like the fax number. Is it possible?
Thank-you
  #2  
Old January 24th 07, 09:47 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Personal Address Book Details

There is no FAX property, and AFAIK the Type property doesn't indicate FAX
(it might - it usually has EX or SMTP I believe).

If this was an AddressEntry object from your Contacts folder exposed as an
Outlook AddressBook, you could get the related Contact and read
BusinessFaxNumber, etc. from the ContactItem object. However, you'll need to
search in the Contacts folder for the Contact using AddressEntry.Name
(there's an AddressEntry.GetContact method with Outlook 2007 or Redemption).

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"ABM" wrote:

I am using this code to access information in a Personal Address Book

iRow = 0
For Each oAddressEntry In oAddressList.AddressEntries
If oAddressEntry.DisplayType = 5 Then
iRow = iRow + 1
oWorksheet.Cells(iRow, 1) = oAddressEntry.Name
oWorksheet.Cells(iRow, 1).Font.Bold = True
For Each oMember In oAddressEntry.Members
iRow = iRow + 1
oWorksheet.Cells(iRow, 1) = oMember.Name
oWorksheet.Cells(iRow, 2) = oMember.Address
Next
Else
iRow = iRow + 1
oWorksheet.Cells(iRow, 1) = oAddressEntry.Name
oWorksheet.Cells(iRow, 1).Font.Bold = True
oWorksheet.Cells(iRow, 2) = oAddressEntry.Address
End If
Next

Can't figure out how to access details like the fax number. Is it possible?
Thank-you

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can details from contacts be listed in my address book(Outloo. keltis Outlook - Using Contacts 1 July 5th 06 02:52 PM
Add to Personal Address Book J Streger Outlook - Using Contacts 2 June 1st 06 06:13 PM
deleting personal address book Jeanne P Outlook - Using Contacts 4 May 26th 06 08:43 PM
Personal Address Book Rose Outlook - Using Contacts 2 January 31st 06 04:00 PM
How do I increase the font size of the address book details Maureen Outlook - Using Contacts 1 January 25th 06 10:54 AM


All times are GMT +1. The time now is 12:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.