View Full Version : Import and Export Contacts
Paleo
04-13-2005, 03:19 PM
How could I import and export my contacts using a macro?
Killian
04-14-2005, 06:03 AM
Hi Carlos :hi:
I'm not sure about this... I know it's easy to import a PST into your Outlook namespace Sub ImportPST()
Dim olNS As NameSpace
Set olNS = GetNamespace("MAPI")
olNS.AddStore "C:\My Documents\MyContacts.pst"
End Sub
but exporting is different...
I think you may have to iterate through the Contact items, get the properties and pass them to an export file - easy if you want to export to Excel or text of some kind, but I don't know how to make a PST
Paleo
04-14-2005, 06:09 AM
Hi Killian,
great you already solved 50% and this helps me a lot, now I just wait for someone else to help me on the other 50%, because I am having some trouble on making that pst.:banghead:
Paleo
04-18-2005, 06:13 PM
Hi Killian,
the import worked great, so now my problem is to export the messages for a text file AND a pst.
BexleyManor
05-11-2005, 03:51 PM
Hi Carlos, Don't know if this would be of any use to you but I suggest you take a look..
http://msdn.microsoft.com/library/default.asp?url=/archive/en-us/dnaro97ta/html/addressexpt.asp
Paleo
05-11-2005, 09:02 PM
Great BexleyManor,
yes, it helped a lot. Thanks.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.