Help with importing a creating contact list using vbscript

  • Thread starter Thread starter John Connor
  • Start date Start date
J

John Connor

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

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top