?
Solved

Outlook - saving new mail in specific folder

Posted on 2002-06-13
5
Medium Priority
?
229 Views
Last Modified: 2010-05-02
When a new mail item is created in Outlook (through automation), how do you save it to a specific folder? It always saves the email in the Drafts folder which I presume is the "Outlook default folder for the item type".
0
Comment
Question by:jgv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:rpai
ID: 7075708
In the Menu, select Tools --> Rules Wizard and you can specify which message should get saved in what specific folder.
0
 
LVL 12

Author Comment

by:jgv
ID: 7075766
rpai,

The messages that need to be saved are newly created, unsent email. The rules wizard works with sent and recieved messages only.

If you create a new message in Outlook and then save it, it is saved in the Drafts folder automatically. I realize that the default folder can be changed in Outlook but I do not want to do this. Email created by a user *should* go into the drafts folder but the email that I am generating through code needs to be saved in a specific folder.
0
 
LVL 12

Author Comment

by:jgv
ID: 7075803
Figured it out.

After creating the email, instead of .Save (which always saves it in the Drafts folder), I am using:

MailItem.Move (myMAPIFolder)

to save it in a specific folder.

0
 
LVL 5

Expert Comment

by:rpai
ID: 7075826
Thats good news!!

0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 7075897
Thanks for posting the solution you found.  I have refunded your 50 points to you and moved this to our PAQ at zero points and closed it.  PAQ = Previously Asked Questions database which is  a resource to help others.

Moondancer - EE Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question