
Click Next button, in the Step 1: Select condition(s) list box, choose the condition you want to create. In the popped out Rules Wizard, select Apply rule on message I receive option from the Start from a blank rule section, see screenshot:Ħ.

In the Rules and Alerts dialog box, click New Rule, see screenshot:ĥ. Please click Rules > Manage Rules & Alerts under the Home tab, see screenshot:Ĥ. Then save and close the code, after inserting the code, you need create a rule. Set xNewTask = Outlook.CreateItem(olTaskItem)ģ. VBA code: auto create new tasks when receiving emails: Sub CreateNewTask(Item As Outlook.MailItem) In the Microsoft Visual Basic for Applications window, double click ThisOutlookSession from the Project1(VbaProject.OTM) pane to open the mode, and then copy and paste the following code into the blank module. Launch the Outlook, and then hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ.


There is no direct method and rule to solve this job, but here, I can combine the VBA code and rule together to finish it, please do as follows:ġ. How could you deal with this job in Outlook?Īuto create new tasks when receiving specified emails with VBA code in Outlook But, have you ever tried to create a new task automatically when receiving specified emails? For example, I just want to auto create tasks from the messages of my boss. In Outlook, it may be easy for us to create a new task from an email message.
#How to import a script task in outlook macro how to
How to auto create new tasks when receiving specified emails in Outlook?
