如何使用PowerPoint 2003 VBA将图片添加到占位符?

时间:2022-04-24 09:00:43

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.

我正在尝试使用MATLAB创建PowerPoint幻灯片。看起来它与使用VBA创建PowerPoint幻灯片基本相同,只是语法略有不同。函数和变量名都是一样的。

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.

无论如何......我可以在幻灯片中添加图片。我还可以添加一个特定的布局,创建一些占位符。但我无法弄清楚如何添加图片并将其链接到特定的占位符。我想将4张图片导入PowerPoint并应用“4对象”布局。我显然可以手动将图片放在布局选择的相同位置。但我想将它们链接到占位符,以防我需要更改布局。

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

有谁知道如何添加图片并将其链接到占位符?

Thanks, Andrew

1 个解决方案

#1


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:

MathWorks文件交换中提供了一些MATLAB代码,可帮助您将数字从MATLAB移动到具有特定布局的PowerPoint:

  • saveppt2 by Jedediah Frey.
  • 由Jedediah Frey编写的saveppt2。

  • subplotPPT by Mark Hoyle.
  • subplotPPT作者:Mark Hoyle。

  • saveppt by Mark Brown.
  • 马克布朗的救命。

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!

希望这可以帮助!

#1


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:

MathWorks文件交换中提供了一些MATLAB代码,可帮助您将数字从MATLAB移动到具有特定布局的PowerPoint:

  • saveppt2 by Jedediah Frey.
  • 由Jedediah Frey编写的saveppt2。

  • subplotPPT by Mark Hoyle.
  • subplotPPT作者:Mark Hoyle。

  • saveppt by Mark Brown.
  • 马克布朗的救命。

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!

希望这可以帮助!