• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Merge or Split Conversations

Slipstick Systems

› Developer › Code Samples › Merge or Split Conversations

Last reviewed on March 28, 2019     18 Comments

A major complaint with Outlook's Conversation view is the inability to split and merge conversations. Some email clients remove the conversation id, some message threads go way off topic and should be split into their own thread.

I'm trying conversation view, but it doesn't seem to allow me to deal with a common issues, such as users creating a new message instead of hitting reply, using a reply to create a new message to someone, or separate threads with the same subject. How can I tell Outlook where they belong?

How can I tell Outlook a new thread is part of the same conversation?
Scenario: Somebody doesn't reply to an e-mail in a conversation, but creates a new e-mail with a new subject. This can also happen when other people in the thread don't use Outlook (losing the conversation ID in the header) or with messages sent to mailing lists. Extra spaces before or after RE: or multiple RE: in the subject can also cause Outlook to create a new thread for certain messages.

How can I tell Outlook these messages to be a new conversation thread?
Scenario: Somebody uses an e-mail in a particular conversation to start what should be a new message thread. For example, instead of using autocomplete or the address book, people click Reply then delete the subject and body from the message to start a new one to that person or group.

How can I tell Outlook the messages are unrelated?
Scenario: Two separate conversation threads have the exact same subject because they were originally produced by an automated system that gives all e-mails the exact same subject line.

While Outlook can't fix any of these problems on it's own, you can use a macro to add a message to a conversation or move one to a new conversation.

These macros require Redemption.

Add Messages to a Conversation

This macro adds messages to a conversation. Select the message that should be added to a conversation, hold shift and select a message in the conversation it belongs in, then run the macro.

This macro was tested in Outlook 2016 and should work in Outlook 2010 and newer. Note that it may not work with all account or data file types. It's highly recommended that you test it on a few messages first, so you can see how it works and verify it works on your account type.

Before and After running the macro:
merge threads

Sub AddToConversation()

On Error GoTo ErrHnd:

        Dim oNS As Object
        Dim oRDOSess As Object
        Dim oRDOItem As Object
        Dim sEntryID As String
        Dim sStoreID As String
        Dim lNumMsgs As Long

        Set oRDOSess = CreateObject("Redemption.RDOSession")
        Set oNS = Nothing
        Set oNS = Outlook.GetNamespace("MAPI")
        oNS.Logon
        oRDOSess.MAPIOBJECT = oNS.MAPIOBJECT
        lNumMsgs = Outlook.ActiveExplorer.Selection.Count

        If lNumMsgs < 2 Then
                MsgBox ("To add messages to a conversation, first select a message then select the target conversation and run this macro.")
                GoTo ErrHnd:
        End If
        For i = 1 To (lNumMsgs - 1)
                With Outlook.ActiveExplorer.Selection(i)
                        strEntryID = .EntryID
                        strStoreID = .Parent.StoreID
                End With
                Set objRDOItem = oRDOSess.GetMessageFromID(strEntryID, strStoreID)
                objRDOItem.ConversationTopic = Outlook.ActiveExplorer.Selection.Item(lNumMsgs).ConversationTopic
                objRDOItem.Save
        Next i

ErrHnd:

        Set oNS = Nothing
        Set oRDOSess = Nothing
        Set objRDOItem = Nothing
        Set strEntryID = Nothing
        Set strStoreID = Nothing
        lNumMsgs = 0

End Sub

 

Remove Messages from Threads

This macro removes messages from a conversation. Select the message that should be removed from a conversation then run the macro. By default, the new conversation will use the message subject, but you can enter any subject.

This macro was tested in Outlook 2016 and should work in Outlook 2010 and newer. Note that it may not work with all account or data file types. It's highly recommended that you test it on a few messages first, so you can see how it works and verify it works on your account type.

Before and After running the macro (I added a character to the end of the subject so they would create a new thread):
split threads

Sub ChangeConversation()

On Error GoTo ErrHnd:

        Dim oNS As Object
        Dim oRDOSess As Object
        Dim oRDOItem As Object
        Dim sEntryID As String
        Dim sStoreID As String
        Dim lNumMsgs As Long
        Dim sNewConv As String
        Dim sTmp As String
        Set oRDOSess = CreateObject("Redemption.RDOSession")
        Set oNS = Nothing
        Set oNS = Outlook.GetNamespace("MAPI")
        oNS.Logon
        oRDOSess.MAPIOBJECT = oNS.MAPIOBJECT
        lNumMsgs = Outlook.ActiveExplorer.Selection.count

        If lNumMsgs < 1 Then
                GoTo Instructions:
        End If
        sNewConv = InputBox("Change the Conversation ID to:", "Change Conversation ID", "subject")
        If sNewConv = "" Then
                GoTo Instructions:
        End If
        For i = 1 To lNumMsgs
                With Outlook.ActiveExplorer.Selection(i)
                        strEntryID = .EntryID
                        strStoreID = .Parent.StoreID
                End With
                Set objRDOItem = oRDOSess.GetMessageFromID(strEntryID, strStoreID)
                If UCase(sNewConv) = "SUBJECT" Then
                        sTmp = Outlook.ActiveExplorer.Selection.Item(i).Subject
                        sTmp = Replace(Replace(Replace(Replace(Replace(Replace(sTmp, "RE: ", ""), "FWD: ", ""), "FW: ", ""), "Re: ", ""), "Fw: ", ""), "Fwd: ", "")
                        objRDOItem.ConversationTopic = sTmp
                Else
                        objRDOItem.ConversationTopic = sNewConv
                End If
                objRDOItem.Save
        Next i
        GoTo ErrHnd:

Instructions:
        
        MsgBox ("To change a conversation ID, select the message(s) then run this macro. Enter the new ID, and click OK. NOTE: To change the conversation to the default (to match the subject), enter the word 'subject' as the new ID.")

ErrHnd:

        Set oNS = Nothing
        Set oRDOSess = Nothing
        Set objRDOItem = Nothing
        Set strEntryID = Nothing
        Set strStoreID = Nothing
        lNumMsgs = 0
        sNewConv = ""
        sTmp = ""

End Sub

Install Redemption

To use Redemption, download the Developer version (it's free for personal use). Run the downloaded file; it will install the 32-bit version and if using 64-bit Windows, the 64-bit version.

Open the Visual Basic Editor (Alt+F11) then go to Tools, References and locate Redemption in the list. Tick the box the close the dialog.

Install & Enable Redemption

How to use macros

First: You will need macro security set to low during testing.

To check your macro security in Outlook 2010 or 2013, go to File, Options, Trust Center and open Trust Center Settings, and change the Macro Settings. In Outlook 2007 and older, it’s at Tools, Macro Security.

After you test the macro and see that it works, you can either leave macro security set to low or sign the macro.

Open the VBA Editor by pressing Alt+F11 on your keyboard.

To put the code in a module:

  1. Right click on Project1 and choose Insert > Module
  2. Copy and paste the macro into the new module.

More information as well as screenshots are at How to use the VBA Editor

More Information

Another macro to merge conversations:
E-Mail: Merge conversation (Michael Bauer)

Merge or Split Conversations was last modified: March 28th, 2019 by Diane Poremsky
Post Views: 38

Related Posts:

  • Stop automatically assigning categories to all messages in a thread
  • Ignore Conversations in Outlook
  • Merge to email using only Outlook
  • Disable Conversation View in Outlook.com and Outlook on the Web

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. ahmetgns says

    August 8, 2025 at 3:53 am

    I developed the macro of Michael Bauer, which does not copy the conversationindex of the main email to the new ones but append suffixes to it to make them indented in the conversation view. The limitation of that macro was, it uses the current system time to generate the suffix to the original conversationindex. So when it is run for multiple new mails, they are indented but the order of them may be mixed, not chronological. The new macro merges them according to each email's sent time, so even you merge an earlier mail later on, it always merges in the conversation in the correct order. That was the most important limitations of the two macros given above for me so I would like to share mine with you. It is in the attachment.

    Reply
  2. Hywel Harris says

    June 15, 2023 at 12:18 pm

    Only problem with this macro is that if you reply to the new email, then add that to the main conversation, your reply is no longer showing in the conversation, only in the sent folder, which sort of limits the usefullness of this macro in tidying up an inbox.

    However if you routinely only ever use the macro on a newly incoming email before you reply to it then its fine.

    Reply
  3. Madalin says

    March 10, 2023 at 9:24 am

    Hello,

    Thank you for sharing this. I was looking for a while for this code to help me add messages into conversations. I followed your recommendations and could add the macro in the ribbon. When testing, the merging doesn't work completely. It just changes the title of the message that I want to add and makes it similar to the conversation. However, is not added in the conversation itself, so I could see it when I expand the conversation. Is there any of the settings from the macro that I could change to make this happen?

    Thank you for your time!

    Reply
  4. Dan says

    December 31, 2021 at 5:55 am

    Dear Diana,

    AddToConversation works fine in VBE environment, i.e. when I open the Microsoft Visual Basic for Applications, but nothing happens when I customize ribbon and add macro command to either of tabs of MS Outlook menu and assign a button to it. Any ideas as to why this happens?

    Dan

    Reply
  5. Atrusty says

    December 18, 2018 at 5:59 am

    Both AddToConversation & ChangeConversation were working fine in my Outlook 2013, till my Win10 profile corrupted 2 weeks ago. When I tried to re-install these macros, I got some errors. I'm a VBA noob, but could understand that certain lines of the ChangeConversation code were being red-lighted for error. I fixed them largely by guesswork and it's working now … apparently some extra commas & double-quote marks have got added somehow.

    Here are the lines:.

    Set oRDOSess = CreateObject(","Redemption.RDOSession",")

    Set oNS = Outlook.GetNamespace(","MAPI",")

    sNewConv = InputBox(","Change the Conversation ID to: ",", ","Change Conversation ID",", ","subject",")

    If sNewConv = ",""," Then

    sTmp = Replace(Replace(Replace(Replace(Replace(Replace(sTmp, ","RE: ",", ","","), ","FWD: ",", ","","), ","FW: ",", ","","), ","Re: ",", ","","), ","Fw: ",", ","","), ","Fwd: ",", ","",")

    MsgBox (","To change a conversation ID, select the message(s) then run this macro. Enter the new ID, and click OK. NOTE: To change the conversation to the default (to match the subject), enter the word 'subject' as the new ID.",")

    Reply
  6. Abdullah says

    February 6, 2018 at 11:27 am

    @Oleg, thanks that is working perfectly. However it is not working for me for the split conversation. I keep getting syntax error. Can you fix that as well

    Reply
  7. Oleg says

    October 4, 2017 at 10:06 am

    RE: Add Messages to a Conversation. It seems "Show as Conversations" mode in Outlook 2016 does not use "ConversationTopic" attribute for grouping, but it uses "ConversationIndex". So, if you add line objRDOItem.ConversationIndex = Outlook.ActiveExplorer.Selection.Item(lNumMsgs).ConversationIndex before objRDOItem.Saveit the script will work fine.

    Reply
    • Walter Smith says

      September 23, 2020 at 3:44 pm

      This got it running for me! Outlook365.

      Note it's not objRDOItem.Saveit it's objRDOItem.Save (I know I know, pesky formatting pickiness...)

      Reply
  8. Abdullah says

    July 2, 2017 at 5:39 am

    I did exactly as the article, but unfortunately, nothing happens. I'm using Outlook 365.

    One thing I'm not sure about the macro security, I could not find the option for low security and I choose notifications for all macros.

    Please help, this issue has been bothering me for a long period of time

    Reply
  9. Greg says

    May 24, 2017 at 4:49 pm

    Is there a way to write these scripts without using Redemption?

    Unfortunately I'm on a company network that doesn't allow me to download and install Redemption, but I would like to get this working.

    Reply
    • Diane Poremsky says

      May 24, 2017 at 6:08 pm

      No, unfortunately.. unless you know C# or dephi and mapi.

      Reply
  10. Joe says

    December 5, 2016 at 12:40 pm

    The macro works as expected but within 2 seconds after merging the emails they are automatically unmerged. Any idea why outlook does this? Steps to reproduce include:

    1. Open main email within inbox
    2. Select emails within inbox to be merged into main email/conversation
    3. Run the macro
    4. Confirm that emails were merged
    5. See emails automatically unmerged

    Reply
  11. Poor says

    July 28, 2016 at 5:06 am

    This used to work in my outlook 2010 but It's no longer available since I installed Outlook 2016. Any help please? I'm suck at vba coding.....

    Reply
    • Diane Poremsky says

      July 28, 2016 at 5:38 pm

      What type of email account? I noticed it doesn't work with my exchange mailbox but seemed to work with others.

      Reply
  12. Henry says

    June 8, 2016 at 8:07 am

    good tip, but this doesn't work in my Outlook 2013 64bit
    somehow the conversation title changes, but they aren't merged together.

    Reply
    • Diane Poremsky says

      July 16, 2016 at 10:10 am

      What type of email account? I noticed it doesn't always work 'as expected' with my Exchange accounts but seems to be fine with POP3 accounts. I don't recall if i tested with an imap account, but imap accounts are funky in outlook 2016 anyway - you might end up with duplicates.

      Reply
      • Joe says

        October 11, 2016 at 5:55 am

        It doesn't work also for me with outlook 365 ProPlus

      • Diane Poremsky says

        October 11, 2016 at 5:31 pm

        I noticed it's kinda buggy with office 365 exchange accounts. Unfortunately, I'm not aware of a way to fix those problems (and is likely the reason Microsoft didn't add a similar feature.)

Leave a Reply Cancel reply

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

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 3

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.