title: Insert image into Word document in the line below the found text
body: <p>I am creating an automated document generation tool using data from an Excel workbook through VBA code.</p>
  <p>The code below replaces text and inserts the images, however, they get pushed into the top of the document.</p>
  <p>Is there any way to return the position of the found text, declare a range based on the position, and use that to insert the inline-shape (image) into the line after the tagName text?</p>
  <p>I had this working previously through calling Word macros from Excel, however, this needs to be completely Excel based.<br />
  This program will be handling Word documents that have no VBA.</p>
  <pre><code>For Each sr2 In wDoc.StoryRanges
      With sr2.Find
          .Text = tagName
          .Replacement.Text = tagValue
          .Wrap = 1
          .Execute Replace:=2
          If .Found = True Then
              sr2.InlineShapes.AddPicture fileName:=ThisWorkbook.Path &amp; &quot;\1. SOW Templates\ Client Summary import.jpg&quot;
          End If
      End With
  Next sr2
  </code></pre>