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

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
 
S

Sue Mosher [MVP-Outlook]

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
 

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