Then click Finish button and click OK to close the Rules and Alerts dialog.ġ0. Give a rule name for this new rule you creaed into Step 1: Specify a name for this rule text box, and then check Turn on this rule in Step 2: Setup rule options section, see screenshot:ĩ. And then click Next > Next to go the Finish rule setup screen. And a Select Script dialog box will show up, select the previously added macro and click OK.Ĩ. Click OK, and go on clicking Next button, in the Step 1: Select action(s) list box, check run a script option, in Step 2: Edit the rule description (click an underline value) box, click on a script link.
In this example, I will check from people or public group option, and in the Step 2: Edit the rule description (click an underline value) section, click the people or public group link go to the Rule Address dialog box, then double click the email address which you want to auto create task while receiving. 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)
HOW TO CREATE TASKS IN OUTLOOK CODE
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 CREATE TASKS IN OUTLOOK HOW TO
How to auto create new tasks when receiving specified emails in Outlook?