Merge PPT's with active x

4 views (last 30 days)
Jos
Jos on 3 Dec 2014
Edited: Jos on 3 Dec 2014
How do I copy a selection of slides from 2 existing PPT's into a new PPT?
Any information is welcome; websites/books/examples etcetera.

Accepted Answer

Image Analyst
Image Analyst on 3 Dec 2014
  5 Comments
Image Analyst
Image Analyst on 3 Dec 2014
Show me your ActiveX commands for creating/adding the new document.
Jos
Jos on 3 Dec 2014
Edited: Jos on 3 Dec 2014
I got it, by trial and error... Can you recommend any documentation for better understanding?
My_server = actxserver('Powerpoint.Application');
My_server.Visible = 1;
My_Presentation = My_server.Presentations.Add;
My_Slides = My_Presentation.Slides;
My_layout = My_server.ActivePresentation.SlideMaster.CustomLayouts.Item(1);
My_page1 = My_Slides.AddSlide(1,My_layout);
My_page1.Shapes.AddPicture('C:\Users\jhoeben\Pictures\Capture.JPG','msoFalse','msoTrue',20,20,500,500);
My_page1.Copy
My_page2 = My_Slides.Paste;
My_Presentation_2 = My_server.Presentations.Add;
My_Slides_2 = My_Presentation_2.Slides;
My_layout_2 = My_server.ActivePresentation.SlideMaster.CustomLayouts.Item(2);
My_page4 = My_Slides_2.Paste;

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!