3

Is it possible, either through VBA or interop / VSTO, to automate the "compare presentations" feature of PowerPoint 2010? Simply invoking it would be a start, though ideally I'd like a bit more control - and in the perfect world be able to programmatically retrieve the results.

PowerPoint 2010 lacks the macro recorder, and thus it's not possible to use the old trick of recording a macro, executing the operation manually, and then looking at the generated code. PowerPoint 2007 has the macro recorder, but doesn't support the compare presentations feature.

I think the answer to this question is probably "no", but I'd be delighted to be proved wrong...

4

1 回答 1

3

要调用它:

Application.CommandBars.ExecuteMso ("ReviewCompareAndMerge")

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

啊。或者:

ActivePresentation.Merge "c:\temp\test.pptx"
于 2013-04-18T18:13:47.140 回答