• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Code for Outlook (2007 or 2010)

ThrottleWorks

Excel Ninja
I want to write a macro in Outlook that will be triggered when new email arrives in the Inbox.


I want to perform following two actions by the macro.


The message box will display "You have recevied New Mail".


Move the new email to a folder "Sachin".


Can anyone help me in this please, I do not anything about how to write codes for Outlook.
 
Can't you just setup a rule within Outlook to move all mail to the folder? Both of your requests sound like functions that are already available within Outlook.
 
Hi Luke Sir thanks a lot for the help, yes we can do it with the rules itself.


My mistake here, I forgot to mention, this is part of my assignment, not a real issue.


Please help if you get time, sorry for the confusion.
 
I'm afraid I'm more confused? Is the assignment to write a macro to do something that already exists? So, just an excercise in learning about using VBA w/ Outlook?
 
Yes, that is the confusing part, I am required to do these things by coding, Sir you are right, We can do it in Outlook with a single click.


Sorry for late reply.
 
Back
Top