![]() ![]() ReminderTime = Date + 2.25 ' remind at 6 AM 2 days from now To use today's date only, not the current time, use Date and decimals to set the due date or reminder time. ObjTask.StartDate = Item.ReceivedTime + 2 If you use a category that is not in your Categories list, the color category field in the view will be colorless as the category is not in the master list. If you prefer to change the Start date, you would add a whole number to the start date line. To calculate the due date, you'll use the DueDate property and add a whole number to the Received date. You can customize the script to set a category or due date (or any other fields supported in Tasks). Set objTask = Application.CreateItem(olTaskItem) Sub ConvertMailtoTask(Item As Outlook.MailItem) Paste this code into the VBA editor then create a rule and choose Run a script as the action. Press Alt+F11 to open the VBA editor and expand the tree to find ThisOutlookSession. ![]()
0 Comments
Leave a Reply. |