VBScript - load data from a file and save a contact in Outlook

Jacek_'s Avatar, Join Date: Aug 2006
Newbie Member
hey guys!

I'd like to create a vbs script which could load specific data from a file..

name, lastname, e-mail
e.g.
john, smith, world, john@world.com
and so on..

and then create a new contact in outlook application using those values.

To create a new contact i could you sth like this:
Const olContactItem = 2a
Dim objOutl, objContact
Set objOutl = WScript.CreateObject("Outlook.Application")
Set objContact = objOutl.CreateItem(olContactItem)
objContact.FirstName = "john"
objContact.LastName = "smith"
objContact.Email1Address = "john@world.com"
objContact.Save()

But i'm not able to create a procedure which could load that data from a file, could you please help me with that.

Jack
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Duplicate of VBScript - load a data from a file and create a new Outlook contact!. Thread closed.