【问题标题】:Is it possible to automate the Compare Presentations feature of PowerPoint 2010?是否可以自动化 PowerPoint 2010 的比较演示文稿功能?
【发布时间】:2013-04-18 17:34:46
【问题描述】:

是否可以通过 VBA 或互操作/VSTO 自动执行 PowerPoint 2010 的“比较演示文稿”功能?简单地调用它就是一个开始,虽然理想情况下我想要更多的控制 - 并且在完美的世界中能够以编程方式检索结果。

PowerPoint 2010 缺少宏记录器,因此无法使用录制宏、手动执行操作然后查看生成的代码的旧技巧。 PowerPoint 2007 有宏记录器,但不支持比较演示文稿功能。

我认为这个问题的答案可能是“不”,但我很高兴被证明是错误的......

【问题讨论】:

    标签: vba vsto powerpoint office-automation powerpoint-2010


    【解决方案1】:

    调用它:

    Application.CommandBars.ExecuteMso ("ReviewCompareAndMerge")
    

    您可以通过转到功能区自定义对话框找到您要使用的其他命令的名称,然后将光标悬停在它上面。出现的工具提示将向您展示要使用的神奇文本(括号中是最后一部分)。

    啊。或者:

    ActivePresentation.Merge "c:\temp\test.pptx"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-04
      • 2016-05-10
      • 1970-01-01
      • 1970-01-01
      • 2020-03-05
      • 2012-07-03
      • 2010-10-03
      • 1970-01-01
      相关资源
      最近更新 更多