![]() |
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,
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |