views:

591

answers:

2

I am trying to create PowerPoint slides using MATLAB. It seems like it is basically the same as using VBA to create PowerPoint slides, except with slightly different syntax. The function and variable names are all the same.

Anyway....I can add a picture to a slide. I can also add a specific layout, which creates some placeholders. But I can't figure out how to add a picture and link it to a specific placeholder. I want to import 4 pictures into PowerPoint and apply the "4 Object" layout. I could obviously manually place the pictures in the same locations that the layout would choose. But I would like to link them to the placeholders in case I ever need to change the layout.

Does anyone know how to add a picture and link it to a placeholder?

Thanks, Andrew

A: 

There are a few MATLAB code submissions on the MathWorks File Exchange that may help you move figures from MATLAB into PowerPoint with specific layouts:

The last submission has inspired the first 2, along with a few others that may also be of help to you (links are provided in the Acknowledgements section of the last submission).

Hope this helps!

gnovice
A: 

Andrew,

Usually when I stuck with automating Office application, I use the Record-Macro trick and check the generated code.

The below article applies to Office 2007, skip the first paragraph and it will also applies to Office 2003 and below:

http://blogs.msdn.com/vsto/archive/2008/06/03/i-just-want-to-format-a-cell-in-my-excel-worksheet-norm-estabrook.aspx

essamSALAH