Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i use this to import iser but i would want to import all propetry of
user : Adress, Name, Email, ecc.... how i can..? 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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() i read and import into a sheet the user name from a distribution list.... is possible to read the propety from each user into this list.? Example: Name, FullName, Address.... ecc... 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=484099 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
import email addresses into a outlook distribution list | Excel Discussion (Misc queries) | |||
Excel Distribution list | Excel Discussion (Misc queries) | |||
Runtime Error 380 – Could not set the list property. Invalid property value | Excel Programming | |||
Runtime error 380: Could not set the List property. invalid property value of listbox | Excel Programming | |||
Email distribution list | Excel Programming |