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

Discussion in 'Web Design, HTML And CSS' started by Jacek_, Aug 31, 2006.

Thread Status:
Not open for further replies.
  1. Jacek_

    Jacek_ New Member

    Joined:
    Aug 31, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Duplicate of [thread=1313]VBScript - load a data from a file and create a new Outlook contact![/thread]. Thread closed.
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice