title: Remove a Recipient in a "Reply All"
body: <p>I'm trying to &quot;reply all&quot;, add text to the subject, add a recipient, and remove a recipient.</p>
  <pre class="lang-vb prettyprint-override"><code>Sub Reply_All()
      Dim olReply As mailitem
      Dim strSubject As String
      For Each olItem In Application.ActiveExplorer.Selection
          Set olReply = olItem.ReplyAll
          Set olRecip = olReply.Recipients.Add(&quot;EmailAddressGoesHere&quot;)
          Set olRecip = olReply.Recipients.Remove(&quot;EmailAddressGoesHere&quot;)
          strSubject = olReply.Subject
          olReply.Subject = &quot;(Added Subject Line Info - ) &quot; &amp; strSubject
          olReply.Display
      Next
  End Sub
  </code></pre>
  <p>Everything works when I comment out the <code>Recipients.Remove</code> line.</p>
  <p>I noticed that</p>
  <pre><code>Set olRecip = olReply.Recipients.Add(&quot;EmailAddressGoesHere&quot;)
  </code></pre>
  <p>has &quot;Add Name As String&quot;</p>
  <p>While</p>
  <pre><code>Set olRecip = olReply.Recipients.Remove(&quot;EmailAddressGoesHere&quot;)
  </code></pre>
  <p>has &quot;Remove Index As Long&quot; as the yellow text that comes up when you type it into the script.</p>