Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default read protpetry of user from a distribution list..


i read and import into a sheet the user into adistribution list....
is posisble to read the propety from each user into this list and
insert into cell.?
For example: Nmae, Address, phone, Ofice...eccc

Sub ELENCO()

Range("A2:B50000").ClearContents

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myGAddressList = myNameSpace.AddressLists("Elenco Indirizzi
Globale")
Set myGEntries = myGAddressList.AddressEntries
RIGA = 2

For Each lista In myGEntries

If lista = "A.T.C.B. - Utenti" Then

Range("A" + RIGA) = lista

For Each NOM In lista.Members
Range("B" + RIGA) = UCase(NOM)
RIGA = RIGA + 1
Next NOM
Exit For
End If

Next lista

Range("A2").Select

'Call Worksheet_SelectionChange

MsgBox ("IMPORT TERMINATO!")

End Sub


--
sal21


------------------------------------------------------------------------
sal21's Profile: http://www.excelforum.com/member.php...fo&userid=2040
View this thread: http://www.excelforum.com/showthread...hreadid=484112

Reply
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
Distribution list from Excel vocegrosso Excel Discussion (Misc queries) 2 March 4th 08 10:11 PM
Excel Distribution list Chris Excel Discussion (Misc queries) 2 December 12th 05 05:40 PM
import from distribution list sal21 Excel Programming 0 November 10th 05 09:41 PM
Is it possible to create distribution list for Outlook? John Elink Excel Programming 2 April 7th 05 09:09 AM
Email distribution list Steve Excel Programming 9 April 22nd 04 09:24 PM


All times are GMT +1. The time now is 09:16 AM.

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

About Us

"It's about Microsoft Excel"