View Single Post
  #1  
Old August 12th 09, 03:55 PM posted to microsoft.public.outlook.program_forms
yannickestrada
external usenet poster
 
Posts: 13
Default How to save a custom form in a specified folder?

Hi I had a custom form that opens automatically from another application. I
would like to save this form in a specified public folder and not in the
client default contact folder.

Here is some code but I can“t get to save in the specified folder.

Set objNameSpace = Application.GetNamespace("MAPI")
Set targetFolder = objNameSpace.Folders("Public Folders").Folders("MyFolder")

Set colItems = targetFolder.Items
colItems.Add

what is missing? I do that in the Item_Write() method.

Thanks.
Yannick



Ads