![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Hello All
i have a custom form that i have at least 2 places i would like it saved to. so when the user saves the form i want it to be saved in their personal folder and a copy of that to be saved in to a public folder. is this possible? i know how to get an item to be created into a certain folder, now i just need to get an idea of how to do this. any and all help appreciated. |
#2
|
|||
|
|||
![]()
Sure you can do that.
If you trap the Item_Write event (when and item is saved) you know it's being saved in a default location. So all you need to do is to use that event, get a handle to the desired location and then use Item.Copy to get a copy of that item as a new object, then use the Move method on that new item. So that code would look something like this: Dim oCopy Dim oMove Set oCopy = Item.Copy ' oFolder is your target folder Set oMove = oCopy.Move(oFolder) -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "DawnTreader" wrote in message ... Hello All i have a custom form that i have at least 2 places i would like it saved to. so when the user saves the form i want it to be saved in their personal folder and a copy of that to be saved in to a public folder. is this possible? i know how to get an item to be created into a certain folder, now i just need to get an idea of how to do this. any and all help appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saving attachments from multiple emails | tryer | Outlook and VBA | 4 | December 3rd 08 05:44 PM |
Saving a task item to a child folder | Carol G | Outlook and VBA | 1 | December 17th 06 05:41 AM |
Outlook 2k3 Script: Pb saving data in custom item | news.microsoft.com | Outlook and VBA | 1 | November 8th 06 02:49 PM |
Saving exception item in recurring appointment item fails | Dikbill | Outlook and VBA | 2 | July 11th 06 03:59 PM |
Saving exception item in recurring appointment item fails | Dikbill | Outlook - Calandaring | 0 | July 11th 06 02:01 PM |