A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do I import contacts from pst-file via VBA?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 17th 08, 01:07 PM posted to microsoft.public.outlook.program_vba
hannu
external usenet poster
 
Posts: 4
Default How do I import contacts from pst-file via VBA?

Hi

Is it possible to import automatically contacts from a outlook.pst
file to another outlook.pst file in a different computer?


hanski


  #2  
Old July 17th 08, 01:40 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How do I import contacts from pst-file via VBA?

That would be possible only if another user is not using the .pst file, which
would lock it from additional users. Importing would be a matter of walking
the folder hierarchy to the desired folder, then iterating its Items
collection. Call Copy on each item, then Move on each copy. You might find
this code sample useful:

http://www.outlookcode.com/codedetail.aspx?id=646
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"hannu" wrote:

Hi

Is it possible to import automatically contacts from a outlook.pst
file to another outlook.pst file in a different computer?


hanski



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to import CSV file to contacts Gavin Outlook - Using Contacts 3 October 16th 09 09:38 PM
How to import contacts from a pst-file via VBA? hannu Outlook - Using Contacts 4 July 17th 08 01:03 PM
Import Contacts from a CSV file dgd2 Outlook and VBA 1 March 19th 08 06:42 PM
Can't import a CSV file into Contacts don Outlook - Using Contacts 1 November 1st 06 09:24 PM
I cannot import a Contacts file to Outlook on a new PC. Uncle Al Outlook - Using Contacts 1 August 2nd 06 10:05 PM


All times are GMT +1. The time now is 12:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.