I have wiritten a code that selects the right shape, but how to insert an image in it
I tried to do it, but image displays on de slide as a new shape.
Pls help me
my code:
Sub Code()
ActivePresentation.Slides.Add(Index:=ActivePresentation.Slides.Count + 1, Layout:=ppLayoutObject).Select
End Sub

Re: How to paste an image in ppLayoutObject

Andy Pope


When I try you code the second line selects one of the Placeholders.
You can not add an image to this. A new shape will be created.

What exactly are you trying to do