title: Replace existing image in MS PowerPoint with a new image using VBA
body: <p>I'm updating my MS PowerPoint by pasting images on different slides using VBA.</p>
  
  <p>Rest of the code is working fine. What I'm unable to do is delete the existing image on all the slides and paste the new image. Currently it paste the new image on top of old image, but old image remains. I'm using below code:</p>
  
  <pre><code>Dim pptApp  As PowerPoint.Application
  Set pptApp = CreateObject("PowerPoint.Application")
  
  pptApp.Visible = msoTrue
  
  xlApp.Worksheets(2).Range("M2:S12").Copy
  Set shp1 = ActivePresentation.Slides(17).Shapes.PasteSpecial(ppPasteEnhancedMetafile)(1)
  
  With shp1
      .Left = 370
      .Top = 100
      .Height = 360
      .Width = 340
  End With    
  </code></pre>
  
  <p>Being a newbie to VBA, I dont know where and how to add delete command in above code. Any kind of help would be appreciated.</p>