How to Auto Move the Tasks Assigned to Others to a Specific Task Folder in Outlook

In general, all the tasks will be placed in the default Outlook task folder, no matter your won tasks or the tasks which you assign to others. This article will introduce how to make Outlook to auto move tasks assigned to others to a specific task folder.

Outlook permits us to assign tasks to others. But in the meantime, the tasks that you assign to other people will be saved in your default task folder as well. In this case, if you often need to assign tasks to others, your task folder will be in mess. The best way to classify and manage your tasks is to create a separate folder and then move the tasks assigned to others to this folder. But manually doing this will be a bit troublesome. Here we will help you achieve it automatically with Outlook VBA.

Auto Move the Tasks Assigned to Others to a Specific Task Folder

  1. To start with, you should create a new task folder. Right click on your default task folder and choose “New Folder”. Specify a name for it. Here we will take “Test” as an example.Create a New Task Folder
  2. Then switch to “Developer” tab and click on “Visual Basic” button.Visual Basic
  3. Next in the new “Visual Basic” window, double click on “ThisOutlookSession” project and copy the following VBA codes into it.
Public WithEvents Items As Outlook.Items

Sub Application_Startup()
    Set Items = Session.GetDefaultFolder(olFolderTasks).Items
End Sub

Sub Items_ItemAdd(ByVal Item As Object)
    If TypeName(Item) = "TaskItem" Then
       MoveTask Item
    End If
End Sub

Sub MoveTask(Item As TaskItem)
    Dim Folder As Outlook.Folder
    Dim myName As String
 
    'replace "smith" with your own account name
    myName = "Smith"
 
    If InStr(Item.Owner, myName) = 0 Then
       Set Folder = Session.GetDefaultFolder(olFolderTasks).Folders("Test")
       Item.Move Folder
    End If
End Sub

Copy the VBA Codes into ThisOutlookSession

Note: The “myName” string depends on your own account name. You can go to “Account Settings” to check “Your Name” field like the following screenshot:Check Your Own Name

  1. After that, you ought to sign this code and change the macro settings. For more details, you can refer to the Step 2 in the article “2 Steps to Auto Mark Junk Emails as Read in Outlook”.
  2. Finally you can have a try.
  • At first, create a new task and click on “Assign Task” button in the new Task window.Assign Task
  • Then you can compose the task and select recipient and lastly click “Send” button.Compose and Send the Task
  • After that, you can go to your task folder list. You will find that this task is placed in the “Test” folder definitely.Check Which Folder the Task Is in

Deal with Corrupt Outlook Files

If you receive Outlook error messages which are involved with your Outlook files, it is likely that the files are corrupted. In this situation, you can use the built-in repair tool, Scanpst.exe, to have a try. If it fails, your last resort must be selecting a more potent corrupt Outlook file fix tool, like DataNumen Outlook Repair.

Author Introduction:

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

One response to “How to Auto Move the Tasks Assigned to Others to a Specific Task Folder in Outlook”

Leave a Reply

Your email address will not be published. Required fields are marked *