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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Saving sent email to a Personal Folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 29th 07, 08:46 PM posted to microsoft.public.outlook.program_vba
ABM
external usenet poster
 
Posts: 5
Default Saving sent email to a Personal Folder

I am sending email from Access and would like to save the emails in a
Personal Folder and not the Sent Items folder. Is this possible?
  #2  
Old March 29th 07, 10:15 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Saving sent email to a Personal Folder

Not directly, no. You can find the item in Sent Items and move it where you
want though.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"ABM" wrote in message
...
I am sending email from Access and would like to save the emails in a
Personal Folder and not the Sent Items folder. Is this possible?


  #3  
Old March 30th 07, 05:02 PM posted to microsoft.public.outlook.program_vba
ABM
external usenet poster
 
Posts: 5
Default Saving sent email to a Personal Folder

I am able to reference the sent mail with this but can't figure out how to
reference a personal folder in order to move. Thanks

Dim oNameSpace As Outlook.Namespace
Dim oFolderSentItems As Outlook.MAPIFolder
Dim oDestinationFolder As Outlook.MAPIFolder
Dim oMailItem As Outlook.MailItem
Set oNameSpace = oOutlook.GetNamespace("MAPI")
Set oFolderSentItems = oNameSpace.GetDefaultFolder(olFolderSentMail)
Set oDestinationFolder = ???????????
Set oMailItem = oFolderSentItems.Items.GetFirst
oMailItem.Move(oDestinationFolder)


"Ken Slovak - [MVP - Outlook]" wrote:

Not directly, no. You can find the item in Sent Items and move it where you
want though.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"ABM" wrote in message
...
I am sending email from Access and would like to save the emails in a
Personal Folder and not the Sent Items folder. Is this possible?



  #4  
Old March 30th 07, 07:12 PM posted to microsoft.public.outlook.program_vba
ABM
external usenet poster
 
Posts: 5
Default Saving sent email to a Personal Folder

Got it

Set oFolderDestination = oNamespace.Folders.Item("Personal
Folders").Folders.Item("myFolder")

"ABM" wrote:

I am able to reference the sent mail with this but can't figure out how to
reference a personal folder in order to move. Thanks

Dim oNameSpace As Outlook.Namespace
Dim oFolderSentItems As Outlook.MAPIFolder
Dim oDestinationFolder As Outlook.MAPIFolder
Dim oMailItem As Outlook.MailItem
Set oNameSpace = oOutlook.GetNamespace("MAPI")
Set oFolderSentItems = oNameSpace.GetDefaultFolder(olFolderSentMail)
Set oDestinationFolder = ???????????
Set oMailItem = oFolderSentItems.Items.GetFirst
oMailItem.Move(oDestinationFolder)


"Ken Slovak - [MVP - Outlook]" wrote:

Not directly, no. You can find the item in Sent Items and move it where you
want though.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"ABM" wrote in message
...
I am sending email from Access and would like to save the emails in a
Personal Folder and not the Sent Items folder. Is this possible?



 




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 a task item to a child folder Carol G Outlook and VBA 1 December 17th 06 06:41 AM
saving outgoing e-mails in a folder SharkHead Outlook Express 7 July 30th 06 01:49 AM
Saving attcahments to a folder with a rule. [email protected] Outlook and VBA 2 July 27th 06 01:55 AM
Supress saving a message in SENT folder ML Outlook - Using Forms 5 May 3rd 06 03:28 PM
Permissions to a Calendar folder in a Personal Folder. qbenboy Outlook - General Queries 3 March 7th 06 06:28 AM


All times are GMT +1. The time now is 09:28 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.