title: Word VBA - Deleting a shape inside a specific paragraph
body: <p>I'm trying to delete a picture inside a specific chapter for which I searched previously. 
  Can someone point me the right way to do this...
  This is the code I wrote so far.</p>
  
  <pre><code>    If insideparagraph Then
  
          'error is here
          Dim o As Word.InlineShape
          For Each o In DocPara.Range
          o.Delete
          Next
  
      End If
  </code></pre>