Insert a slide from another presentation

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
 
J

John Wilson

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
 
G

George

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top