T
Thomas M.
Hi, I'm trying to create a VB-script that enumerates all the contacts in
Outlook, and modifies some of them. So, first I need to enumerate all the
contacts. I've been searching Google with no luck, so here's what I've come
up with:
Const olContactItem = 2
'Create Outlook Object and Contact Item
Set objOutlook = CreateObject("Outlook.application")
Set itmContact = objOutlook.CreateItem(olContactItem)
For Each myitem In mycontacts
wscript.echo myitem.FirstName & myitem.LastName & myitem.Email1Address
Next
'Clean up
Set objOutlook = Nothing
Set itmContact = Nothing
However, this doesn't work. Any help is much appreciated.
Regards,
Thomas M.
Outlook, and modifies some of them. So, first I need to enumerate all the
contacts. I've been searching Google with no luck, so here's what I've come
up with:
Const olContactItem = 2
'Create Outlook Object and Contact Item
Set objOutlook = CreateObject("Outlook.application")
Set itmContact = objOutlook.CreateItem(olContactItem)
For Each myitem In mycontacts
wscript.echo myitem.FirstName & myitem.LastName & myitem.Email1Address
Next
'Clean up
Set objOutlook = Nothing
Set itmContact = Nothing
However, this doesn't work. Any help is much appreciated.
Regards,
Thomas M.