• 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     17 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

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.

Subscribe
Notify of
17 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

Hywel Harris (@guest_220355)
June 15, 2023 12:18 pm
#220355

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.

0
0
Reply
Madalin (@guest_220148)
March 10, 2023 9:24 am
#220148

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!

0
0
Reply
Dan (@guest_219042)
December 31, 2021 5:55 am
#219042

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

0
0
Reply
Atrusty (@guest_212425)
December 18, 2018 5:59 am
#212425

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.",")

0
0
Reply
Abdullah (@guest_210256)
February 6, 2018 11:27 am
#210256

@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

0
0
Reply
Oleg (@guest_208825)
October 4, 2017 10:06 am
#208825

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.

6
0
Reply
Walter Smith (@guest_215935)
Reply to  Oleg
September 23, 2020 3:44 pm
#215935

This got it running for me! Outlook365.

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

Last edited 4 years ago by Walter Smith
1
0
Reply
Abdullah (@guest_207500)
July 2, 2017 5:39 am
#207500

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

0
0
Reply
Greg (@guest_206744)
May 24, 2017 4:49 pm
#206744

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.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Greg
May 24, 2017 6:08 pm
#206748

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

1
-1
Reply

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

Latest EMO: Vol. 30 Issue 16

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
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Disable "Always ask before opening" Dialog
  • Adjusting Outlook's Zoom Setting in Email
  • This operation has been cancelled due to restrictions
  • How to Hide or Delete Outlook's Default Folders
  • Reset the New Outlook Profile
  • Save Attachments to the Hard Drive
  • Add Attachments and Set Email Fields During a Mail Merge
  • Outlook SecureTemp Files Folder
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
  • Classic Outlook is NOT Going Away in 2026
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

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Classic Outlook is NOT Going Away in 2026

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 © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment