Insert a slide from another presentation

  • Thread starter Thread starter George
  • Start date Start date
G

George

Hi

The whole weekend I have tried to get
answers on a couple of questions. Thanks
for helping me with the ones that are left.

One of them is the code in vba to insert
a slide from another presentation in the
active window without opening the source.
This works - again - manually but produces
no code when I record a macro.

Thanks for any help and your patience.

Best Regards, George
 
You can use:

ActivePresentation.Slides.insertfromfile "path to file", x, y, Z
x= where to insert
y =first slide to insert
z = last slide to insert

Note you will have to do more if you wish to retain formatting. Have a look
at Shyam's site here http://skp.mvps.org/pptxp001.htm

Also be aware that in 2007 vba there's a bug which give red x's instead of
graphics with insertfromfile if you insert from a .pptx / .ppsx file

--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
 
Dear John

Thanks a lot for your help and the hint concerning
ppt/vba 2007!

I really appreciate your work and your help.

Best Regards, George
 
Back
Top