title: Outlook Get Other Emails in Email Thread--UniqueBody
body: <p>I am using VBA to format all outbound email messages in a certain way before sending.  For example, I want to remove the first column from all tables which are embedded in the email.  I use the following code: </p>
  
  <pre><code>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
      Dim wd As Word.Document
      Set wd = ActiveInspector.WordEditor
      Dim tb As Word.Table
      For Each tb In wd.Tables
          tb.Columns(1).Delete
      Next tb
  End Sub
  </code></pre>
  
  <p>The above code works perfectly.  However, the problem is that I only want to format <em>my</em> email text.  Often, I will be responding to or forwarding someone else's email, which means that the text of the previous email will be in the same Inspector window.  I <em>don't</em> want to format the text/images/etc. of the previous emails in the thread.  How can this be achieved?</p>
  
  <p>I know that each email within a thread--although they're all in the same window--is an individual unit.  I know this because when reading an email which is part of a thread, as you move the mouse, you will see</p>
  
  <p><img src="https://i.stack.imgur.com/HmTwW.png" alt="enter image description here"></p>
  
  <p>on the right side of the screen, indicating where the next part of the thread is.  When composing a new email (reply or forward) which is part of the thread, the above buttons are not shown, but you will still see a blue horizontal line separating the different parts of the thread from each other.</p>
  
  <p>I was thinking that maybe I can search for the first occurrence of the line in the email, and only apply the formatting up until that point.  However, it appears that the line isn't really text or any regular formatting which is searchable in the normal sense.  In fact, if you copy the email text (before sending), and then paste into Word, the line disappears.  </p>
  
  <p>Any suggestions?
  Thanks!</p>
  
  <p><strong>Update</strong></p>
  
  <p>My question has nothing to do with the "conversation view" found in versions 2010 and later.
  Outlook 2010 allows you to <em>view</em> the <em>other</em> emails in the thread in one group.  What I want, however, is to be able to loop through (via code) the emails in the thread <em>within the same email</em>.  So, if there was an email "a", and then a reply, "b", and then another reply, "c", c will also contain b beneath it, and then a beneath that, <em>all within the same email</em>.  In pseudo-code, I would want the following:</p>
  
  <pre><code>Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
      Dim wd As Word.Document
      Dim smail as SubEmail
      Dim tb As Word.Table
      Set wd = ActiveInspector.WordEditor
      For Each smail in wd
          For Each tb In wd.Tables
              tb.Columns(1).Delete
          Next tb
          Exit For
      Next smail
  End Sub
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>I found a similar feature in Exchange Web Services, called UniqueBody.  See <a href="http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.item.uniquebody%28v=exchg.80%29.aspx" rel="nofollow noreferrer" title="here">here</a>.  That's exactly what I'm looking for, just not with Exchange.</p>