title: Using ScaleHeight in PowerPoint VBA
body: <p>I have the following 'attempt at' a macro in PowerPoint which inserts a picture into the current slide:</p>
  
  <pre><code>Sub Insert_Traverse_2a()
      Dim oPic As Shape
      Set oPic = ActiveWindow.View.Slide.Shapes.AddPicture("\\nlamvfs00065\homes\nlkpec\newpic.png", False, True, 0, 0, -1, -1)
          oPic.ScaleHeight(100, msoTrue, msoScaleFromTopLeft)
  End Sub
  </code></pre>
  
  <p>However, the line with "ScaleHeight" gives a syntax error. From the documentation on</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.shape.scaleheight%28v=office.14%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint.shape.scaleheight(v=office.14).aspx</a></p>
  
  <p>I don't see what I'm doing wrong?</p>
  
  <p>(I would like PowerPoint to not resize the image, since this causes a loss of resolution. Without the 'ScaleHeight' line, however, PowerPoint automatically resizes the image if it's bigger than the slide).</p>