How to Auto Print the Status Report of an Outlook Task after Marking It Complete

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.

Send Status Report

Auto Print the Status Report of a Task after Marking It Complete

  1. To start with, go to Outlook VBA editor with accordance to “How to Run VBA Code in Your Outlook“.
  2. 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

VBA Code - Auto Print the Status Report of a Task after Marking It Complete

  1. After that, place your cursor in the first “Application_Startup” subroutine.
  2. Later, press “F5” key button.
  3. Next, open the default Task folder in your Outlook.
  4. Subsequently, select or open a task in this folder.
  5. Afterwards, locate and click “Mark Complete” button in ribbon.Mark Task Complete
  6. At once, the task status report will be printed out, as shown in the following screenshot.Printed Task Status Report

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.

Author Introduction:

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

Comments are closed.