LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Outlook Address Properties Excel


Hi there.

Thought I'd try this group again because been so helpful with my last couple
of queries (grovelling over now :) ).

In my address book at work, when I double click on a person's name, I get a
box showing first name, last name, Alias etc etc (this may be customised
specifically for the business, I don't know).

I can do a search through the address book for a user, but is it possible to
return details like first name, last name, more urgently alias details etc?

Following is some code I have tried, with some of it commented out because I
thought I was getting close, though I think this code may be oriented more
towards Outlook, just wondering if it's possible to get Excel VB to use it
somehow:

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myaddresslist = myNameSpace.AddressLists("Global Address List")
Set myAddressEntries = myaddresslist.AddressEntries
'how many entries in address book:
'MsgBox myAddressEntries.Count
myaddressentry = myAddressEntries.Item(myNameSpace.CurrentUser.Name )
'THIS NEXT LINE IS THE PROBLEMATIC ONE, I THINK
b = myaddressentry.Properties("alias")
MsgBox b

Thanks in advance



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do insert Address in Excel from Outlook Tim Treaster Excel Discussion (Misc queries) 1 April 19th 08 07:48 PM
Using Outlook address book in Excel Diane Hazen Excel Discussion (Misc queries) 1 April 19th 05 08:39 AM
How do I import Office address book to Outlook Express address bo. snnorp Excel Discussion (Misc queries) 2 February 22nd 05 11:47 AM
How to insert an address from Outlook 2003 address book ? Dubois Excel Programming 0 September 27th 04 09:26 AM
Put Email Address from Excel to Outlook Terry Excel Programming 1 January 29th 04 08:40 AM


All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"