lollol8754645


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
ActiveWindow.Selection.SlideRange.Shapes(ActiveWindow.Selection.SlideRange.Shapes.Count).Select
End Sub




Re: How to paste an image in ppLayoutObject

Andy Pope


Hi,

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