通过 VBA 脚本编辑 Powerpoint 图表数据
我有一个 PowerPoint 演示文稿,其中包含一个图表,其中包含 Excel 表格中的数据。
我想通过 powerpoint VBA 编辑器编辑此数据..
我该怎么做?我找不到访问 Excel 表数据的方法。
问候
i've a powerpoint presentation with a chart which contains data from an excel table.
I would like to edit this data via the powerpoint VBA editor..
how can i do this? i cant find a way to access the data of the excel table.
greets
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此代码允许您访问嵌入到 PowerPoint 演示文稿中的 Excel 工作表。
如果图表链接到您修改的数据,它可能会自动更新。如果不是,强制重新计算。
哈!
编辑
通过以下更改,它可以在 Office 2007 中运行:
This code allows you to access an Excel WorkSheet embedded into a PowerPoint presentation.
If the graph is linked to the data you modify, probably it'll update automagically. If not, force a re-calc.
HTH!
Edit
With the following change it works in Office 2007: