如何在Macintosh上的PowerPoint中的幻灯片上生成图形? [英] How to generate graph on a slide in PowerPoint on Macintosh?
问题描述
问题描述:在幻灯片上生成图形.在Macintosh上的PowerPoint中,没有定义shapes.addchart或shapes.addchart2方法.
Issue Description: To generate a graph on a slide. In PowerPoint on Macintosh shapes.addchart or shapes.addchart2 methods are not defined.
尝试过的解决方案:在嵌入式Excel上动态生成图表,然后将其粘贴到幻灯片上.它给出了内存不足错误.
Solution Tried: Generate chart dynamically on embedded Excel then paste it on slide. It is giving out of memory error.
预期分辨率:shapes.addchart方法的替代方法或其他一些解决方法,可以实现目标.
Expected Resolution: An alternative to shapes.addchart method or some other work around to achieve the target.
Windows
作业系统:Windows 10 Pro版本1607(作业系统组建14393.693)
Office:Microsoft Office 365 ProPlus,版本1611(内部版本7571.2109)
PowerPoint:PowerPoint 2016 MSO(16.0.7571.7095)32位
Windows
OS: Windows 10 Pro Version 1607 (OS Build 14393.693)
Office: Microsoft Office 365 ProPlus, Version 1611 (Build 7571.2109)
PowerPoint: PowerPoint 2016 MSO (16.0.7571.7095) 32 bit
MAC 作业系统:macOS Sierra,版本10.12 办公室:Office 365 PowerPoint:版本15.30(170107)
MAC OS: macOS Sierra, Version 10.12 Office: Office 365 PowerPoint: Version 15.30(170107)
代码段:
Dim myChart As Chart
'xlLine=4
Set myChart = ActivePresentation.Slides(1).Shapes.AddChart(Type:=4).Chart
错误消息:未找到方法或数据成员"
Error Message: "Method or data member not found"
推荐答案
一种可能性是在单独的Powerpoint文件中维护预制图表库.无窗口打开此文件,复制所需的图表,将其粘贴到目标演示文稿中所需的幻灯片中,然后关闭隐藏的"图表演示文稿.
One possibility is to maintain a library of pre-made charts in a separate Powerpoint file. Open this file windowlessly, copy the needed chart, paste it into the desired slide in your target presentation, then close the "hidden" chart presentation.
这篇关于如何在Macintosh上的PowerPoint中的幻灯片上生成图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!