【发布时间】:2019-06-11 06:43:00
【问题描述】:
我正在尝试使用 interop.powerpoint 以编程方式在 powerpoint 中创建一个新宏
我尝试过使用 Presentation 对象,但 VB Project 属性只包含 get 属性。
PowerPoint.Application oPP = new PowerPoint.Application()
{
DisplayAlerts = Microsoft.Office.Interop.PowerPoint.PpAlertLevel.ppAlertsNone,
Visible = MsoTriState.msoTrue
};
PowerPoint.Presentations oPresSet = oPP.Presentations;
PowerPoint._Presentation _activePres = oPresSet.Open(@"C:\Users\Mohit\Desktop\Archive\Working_Session_S&OP.pptx",
MsoTriState.msoTrue, MsoTriState.msoFalse,
MsoTriState.msoTrue);
我想从 C# 发送 VBA 宏代码
【问题讨论】:
标签: c# interop powerpoint