Question

I want to cut one slide and paste it as a picture in same presentation file (ppt format).

I know that following VBA code work for copy&paste in a single slide.

ActivePresentation.Slides(1).Copy   ''copy first slide into clipboard
ActivePresentation.Slides.Paste     ''paste above slide as a last slide

What I want to know is how to paste a slide as a "picture". ('paste as a picture' is an option of Paste Special [e.g. paste as a PNG,JPEG...])

Are there any suggestions for how to go about this?

Was it helpful?

Solution

Yeah, your code was pretty close. Here's an example of taking Slide 1 and pasting it as a picture in Slide 2.

ActivePresentation.Slides(1).Copy
ActivePresentation.Slides(2).Shapes.PasteSpecial ppPasteJPG

You can look up PpPasteDataType for more formats to paste to.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top