Help with importing a creating contact list using vbscript

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
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top