title: How to delete a section using excel-vba to create a word document
body: <p>Hello and thank you in advance.</p>
  <p>I am creating a very complex Word document out of an Excelfile using VBA. It shall be possible to activate something and a text written in a cell shall be transfered to the word document. I got that already done. But if it is not activated the tag &quot;&lt;&gt;&quot; shall be removed, leaving nothing behind. This means that it shall remove not only the text, it shall remove the complete &quot;line&quot;. As line might be a section i am not sure if just line is the correct word here.</p>
  <p>Right now I find and replace them with &quot;&quot; using:</p>
  <pre><code>With WordDoc.Content.Find
     .Execute FindText:=ReplacementTextF, ReplaceWith:=&quot;&quot;, Replace:=2
  End With
  </code></pre>
  <p>but how can I delete the line/section, too?</p>
  <p><strong>EDIT1:</strong></p>
  <p>Example:</p>
  <p><a href="https://i.stack.imgur.com/Qx65j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qx65j.png" alt="enter image description here" /></a></p>
  <p>As the replacement is optional, the user can select which text he wants in the document. Therfore, maybe ReplacementText4 is not needed. So I need to delete the &quot;&lt;&lt; ReplacementText4 &gt;&gt;&quot; and delete the bullet too. This is what I meant by deleting a line/section.</p>