How to Auto Insert Signature to Outgoing Task Requests in Your Outlook

By default, Outlook is able to auto insert signature to outgoing emails. Now, if you’d like to let it automatically insert signature to outgoing task requests, you can read this article. Here we will introduce a quick and easy method to you.

To make outgoing items look more official, no matter outgoing emails, meeting invitations or task requests, you’ll need to always insert the signature to the item body. As we all know, in Outlook, you can realize auto signature inserted to email. But, this feature is not available for meeting invitations and task requests. Hence, if you want to achieve it, you use other means, such as the following one.

Auto Insert Signature to Outgoing Task Requests

  1. To begin with, start Outlook application.
  2. Then, press “Alt + F11” to trigger VBA editor.
  3. Next, copy and paste the following VBA code into the “ThisOutlookSession” project.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim objTaskRequest As Outlook.TaskRequestItem
    Dim strSignatureFile As String
    Dim objFileSystem As Object
    Dim objTextStream As Object
    Dim strText As String
    Dim objTempMail As Outlook.MailItem
    Dim objTask As Outlook.TaskItem

    If TypeOf Item Is TaskRequestItem Then
       Set objTaskRequest = Item
 
       'Modify the path to your own signature file
       strSignatureFile = CStr(Environ("USERPROFILE")) & "\AppData\Roaming\Microsoft\Signatures\John Smith.htm"
       Set objFileSystem = CreateObject("scripting.FileSystemObject")
       Set objTextStream = objFileSystem.OpenTextFile(strSignatureFile)
       strText = objTextStream.ReadAll
 
       Set objTempMail = Outlook.Application.CreateItem(olMailItem)
       objTempMail.Display
       objTempMail.HTMLBody = strText
 
       'Copy the signature to Task Request
       objTaskRequest.Body = objTaskRequest.Body & vbCrLf & vbCrLf & objTempMail.Body
       objTaskRequest.Save
 
       Set objTask = objTaskRequest.GetAssociatedTask(True)
       objTask.Body = objTask.Body & vbCrLf & vbCrLf & objTempMail.Body
       objTask.Save
 
       objTempMail.Close olDiscard
    End If
End Sub

VBA Code - Auto Insert Signature to Outgoing Task Requests

  1. Finally, you can follow the steps below to have a try.
  • First off, create a new task.
  • Then, click “Assign Task” button in “Manage Task” group.
  • Next, add recipients and compose this task.
  • Lastly, click “Send” button to send out this task request.Send Task Request
  • After it is sent out, you can check the task request, in which you can see the signature.Auto-inserted Signature in Task Requests

Combat Aggravating Outlook Issues

How long have you applied Outlook? Provided that you have utilized Outlook for a long time, you may have encountered a lot of problems, such as frequent errors, occasional Outlook crashes as well as severe Outlook PST corruption. In this case, you’d better keep a trustworthy and potent Outlook repair tool, like DataNumen Outlook Repair. With it, even though suffering serious problems, you don’t need to panic in that this tool is capable of solving majority of Outlook issues and even serious PST file damage.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including recover mdf and outlook repair software products. For more information visit www.datanumen.com

Comments are closed.