I have the following 'attempt at' a macro in PowerPoint which inserts a picture into the current slide:
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
However, the line with "ScaleHeight" gives a syntax error. From the documentation on
I don't see what I'm doing wrong?
(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).