【问题标题】:Automating the text in a text box for each slide of a Powerpoint自动为 Powerpoint 的每张幻灯片的文本框中的文本
【发布时间】:2020-11-10 20:06:36
【问题描述】:

所以我在一个 powerpoint 的每张幻灯片上都有大约 500 张图片。在每张幻灯片的底角,我有一个文本框。在文本框中,我想输入图片的名称。图片的名称是选择窗格上图像的名称。因此,我不想手动在每个文本框中输入图像的名称,而是自动化这个过程。

有没有办法做到这一点?是否可以使用 VBA 来做到这一点,如果可以,代码会是什么样子?

【问题讨论】:

  • 请注意,SO 不是代码编写服务。请使用tour 并查看How to Ask

标签: vba automation powerpoint


【解决方案1】:

@BigBen 是对的。是的,你可以做到。

您需要使用.Shape.NameTextFrame.TextRange.Text https://docs.microsoft.com/en-us/office/vba/api/PowerPoint.Shape.Name https://docs.microsoft.com/en-us/office/vba/api/powerpoint.textrange

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-07
    • 1970-01-01
    相关资源
    最近更新 更多