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

  • Thread starter Thread starter hannu
  • Start date Start date
H

hannu

Hi

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


hanski
 
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
 
Back
Top