save an item in public folder

M

Martin

i want to save a contact item programmatically by vba in a contact folder in
our public folder, but the save method saves the item in my privat contact
folder. how can i change this?

thanks a lot

Martin
 
H

Hollis D. Paul

i want to save a contact item programmatically by vba in a contact folder in
our public folder, but the save method saves the item in my privat contact
folder. how can i change this?
The problem lies in how you create the new instance. If you create the new
instance of the contact item as Application.CreateItem(<code for contact
item>), it will always save to the contact folder in your default delivery
infostore. To create the item in the public folder, walk the folder tree to
the public folder you want, and use the Add method of the folder's Item
collection object, specifying the custom form name to pull in a custom form.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 

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