After you mark a task complete, apart from sending the status report to someone, you may also wish to print the status report. Thus, in this article, we will expose an approach to auto print the status report of a task when it’s completed.
After you open a task, you’ll discover a “Send Status Report” button on “Task” tab. It permits you to send a status report about the current task to someone. As long as you click it, a new Outlook mail will be displayed. The email body will contain the relevant details about this task. At this point, if you want to print this report, you can print the current mail. All mentioned above demands you to do manually. If you wish to let Outlook auto print the status report of a task after marking it complete, you can use the following way.
Auto Print the Status Report of a Task after Marking It Complete
- To start with, go to Outlook VBA editor with accordance to “How to Run VBA Code in Your Outlook“.
- Then, open the “ThisOutlookSession” project and put the following VBA code into it.
Public WithEvents objTaskFolder As Outlook.Folder Public WithEvents objTasks As Outlook.Items 'Monitor the tasks in the default Task Folder Private Sub Application_Startup() Set objTaskFolder = Outlook.Application.Session.GetDefaultFolder(olFolderTasks) Set objTasks = objTaskFolder.Items End Sub Private Sub objTasks_ItemChange(ByVal Item As Object) Dim objTask As Outlook.TaskItem Dim objReport As Object 'If a task is completed If TypeOf Item Is TaskItem Then Set objTask = Item If objTask.Complete = True Then 'Print out the status report Set objReport = objTask.StatusReport objReport.PrintOut End If End If End Sub
- After that, place your cursor in the first “Application_Startup” subroutine.
- Later, press “F5” key button.
- Next, open the default Task folder in your Outlook.
- Subsequently, select or open a task in this folder.
- Afterwards, locate and click “Mark Complete” button in ribbon.
- At once, the task status report will be printed out, as shown in the following screenshot.
Evade Outlook Data Loss
Outlook integrates multiple features, such as sending/receiving emails, managing schedules, controlling tasks and organizing contacts, etc. However, Outlook is still vulnerable similar to other common applications. So, Outlook data will be always in danger if users do not make effective precautions to keep all risks at bay. To be specific, if you do not get hold of a reliable PST fix utility, when Outlook file gets compromised, you will have no way to repair Outlook file. At that time, you would definitely regret. Hence, don’t wait any more. Please take actions to protect your valuable Outlook data.
Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including fix SQL Server and outlook repair software products. For more information visit www.datanumen.com