title: Resizing Excel Chart Using VBA in Powerpoint
body: <p>I know this question has been asked before but as I am no VBA expert, I can't seem to get any of the solutions to work for my particular scenario so I was hoping someone could help.</p>
  
  <p>I have some VBA code that copies a selection from Excel, opens a new powerpoint presentation based on a template and then pastes the data into slide two of powerpoint.</p>
  
  <p>The only thing I want to do now is manipulate the size and position of the chart once it is there. What do I need to add to this code below to make that happen?</p>
  
  <pre><code>   'Opens a new PowerPoint presentation based on template and pastes data into Slide 2 of Powerpoint from Excel
  
  Dim PPapp As PowerPoint.Application, PPpres As PowerPoint.Presentation, PPslide As PowerPoint.Slide
  Dim XLws As Worksheet
  
      Set XLws = ActiveSheet
      Set PPapp = New PowerPoint.Application
      Set PPpres = PPapp.Presentations.Open("C:\Users\Colin\Dropbox (Edge45)\Edge45 Team Folder\Edge45 Company Documents\Templates\Powerpoint Templates\Edge45 Audit Template Macro.potm", Untitled:=msoTrue)
      PPapp.Visible = True
      Set PPslide = PPpres.Slides(2)
      XLws.Range("A1:D16").Copy
      PPslide.Shapes.PasteSpecial DataType:=ppPasteHTML, Link:=msoFalse
      Application.CutCopyMode = False
  </code></pre>