A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Saving an Item to multiple folders



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 12th 09, 10:02 PM posted to microsoft.public.outlook.program_forms
DawnTreader
external usenet poster
 
Posts: 9
Default Saving an Item to multiple folders

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  
Old February 13th 09, 03:47 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Saving an Item to multiple folders

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 10:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.