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

Save mail in a specific folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 12th 08, 10:53 AM posted to microsoft.public.outlook.program_vba
thomas
external usenet poster
 
Posts: 32
Default Save mail in a specific folder

Hello,

I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead of
"sent items" folder ? and to create that specific folder if it does not
exist?

Thanks




Ads
  #2  
Old July 12th 08, 03:34 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Save mail in a specific folder

Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"thomas" wrote:

I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead of
"sent items" folder ? and to create that specific folder if it does not
exist?


  #3  
Old July 12th 08, 09:22 PM posted to microsoft.public.outlook.program_vba
thomas
external usenet poster
 
Posts: 32
Default Re : Save mail in a specific folder

Thanks but when you write "the value of the SaveSentMessageFolder to the
desired folder" do you mean the default folder is changed?

I want to save the mails sent through VBA to a specific folder but i do not
want to change the default folder

i am new in outlook vba and hardly understand that not documented code


thanks

"Sue Mosher [MVP-Outlook]" a écrit dans le message
de groupe de discussion :
...
Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that
demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"thomas" wrote:

I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead
of
"sent items" folder ? and to create that specific folder if it does not
exist?


  #4  
Old July 13th 08, 12:50 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Re : Save mail in a specific folder

Try thinking about it this way: SaveSentMessageFolder is a property of the
MailItem object. That means that it applies only to the particular MailItem
-- that is, a mail message -- for which you set the value of that property.
It has no effect on the default setting.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"thomas" wrote:

Thanks but when you write "the value of the SaveSentMessageFolder to the
desired folder" do you mean the default folder is changed?

I want to save the mails sent through VBA to a specific folder but i do not
want to change the default folder

i am new in outlook vba and hardly understand that not documented code


thanks

"Sue Mosher [MVP-Outlook]" a écrit dans le message
de groupe de discussion :
...
Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that
demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.

"thomas" wrote:

I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead
of
"sent items" folder ? and to create that specific folder if it does not
exist?



  #5  
Old July 13th 08, 03:02 AM posted to microsoft.public.outlook.program_vba
thomas
external usenet poster
 
Posts: 32
Default Re : Re : Save mail in a specific folder

ok i understand now

thanks


"Sue Mosher [MVP-Outlook]" a écrit dans le message
de groupe de discussion :
...
Try thinking about it this way: SaveSentMessageFolder is a property of the
MailItem object. That means that it applies only to the particular MailItem
-- that is, a mail message -- for which you set the value of that property.
It has no effect on the default setting.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"thomas" wrote:

Thanks but when you write "the value of the SaveSentMessageFolder to the
desired folder" do you mean the default folder is changed?

I want to save the mails sent through VBA to a specific folder but i do
not
want to change the default folder

i am new in outlook vba and hardly understand that not documented code


thanks

"Sue Mosher [MVP-Outlook]" a écrit dans le
message
de groupe de discussion :
...
Before you send the message, set the value of the SaveSentMessageFolder to
the desired folder (a MAPIFolder object). For a code sample that
demonstrates
this (in a different context), see
http://www.outlookcode.com/codedetail.aspx?id=1173.

To create a folder, use the MAPIFolder.Folders.Add method on the desired
parent folder.

"thomas" wrote:

I send mail using outlook 2003 vba through excel 2003

Is is possible that the sent mails be saved in a specific folder instead
of
"sent items" folder ? and to create that specific folder if it does not
exist?



 




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
Move email from specific folder (under the inbox) to a specific fo Emil Outlook and VBA 3 June 15th 08 07:23 PM
IPM.NOTE - Save to specific Folder Carlos Outlook - Using Forms 3 August 17th 06 04:21 PM
How to direct mail to specific folder crapit Outlook - General Queries 2 May 16th 06 03:47 AM
Save each e-mail in folder Jason Morin Outlook and VBA 1 May 8th 06 09:36 PM
auto save attachment to specific folder John 3:16 Outlook and VBA 1 March 27th 06 10:00 PM


All times are GMT +1. The time now is 08:53 PM.


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.