S
sal21
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
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