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: 45
Default import from 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

 
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
import email addresses into a outlook distribution list summer Excel Discussion (Misc queries) 3 December 11th 07 08:45 PM
import property from outlokk distribution list sal21 Excel Programming 1 December 29th 05 01:17 PM
Excel Distribution list Chris Excel Discussion (Misc queries) 2 December 12th 05 05:40 PM
Email distribution list Steve Excel Programming 9 April 22nd 04 09:24 PM


All times are GMT +1. The time now is 09:23 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"