我正在尝试使用 VBA 从 Excel 获取数据到 Powerpoint Graph(将数据粘贴到 Powerpoint Graph Object 后面的数据表中)。
我使用此代码作为示例(源代码):
'Code by Mahipal Padigela
'Open Microsoft Powerpoint,Choose/Insert a Graph type Slide(No.8), then double click to add a graph and click...
'...outside the graph to close the Datasheet, then rename the Graph to "Mychart",Save and Close the Presentation
'Open Microsoft Excel, add some test data to Sheet1(This example assumes that you have some test data...
'...(numbers between 0-100) in Rows 2,3,4 and Columns B,C,D,E).
'Open VBA editor(Alt+F11),Insert …Run Code Online (Sandbox Code Playgroud)