Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Contacts / April 2006

Tip: Looking for answers? Try searching our database.

Help with importing a creating contact list using vbscript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Connor - 11 Apr 2006 16:12 GMT
    I have been writing a vbscript file that queries the LDAP then
creates a .csv file with all the contact information of users in my
company. I can then go and manually create a new folder in contacts
then import the .csv into that folder, where it then organizes
everyone's information. My question is if there is a way in vbscript
to automatically create a contacts folder and import a .csv iinto the
contacts folder with vbscript? Thanks
Sue Mosher [MVP-Outlook] - 27 Apr 2006 08:11 GMT
In the Outlook object model, you would use the Folders.Add method to create the new folder, then the Add method on that new folder's Items collection to create each new item. Once you have a new item, you would read the data from the .csv file, then set each contact property, and finally save the item. See http://www.outlookcode.com/d/customimport.htm 

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

>     I have been writing a vbscript file that queries the LDAP then
> creates a .csv file with all the contact information of users in my
[quoted text clipped - 3 lines]
> to automatically create a contacts folder and import a .csv iinto the
> contacts folder with vbscript? Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.