如何使图表使用静态值代替数据范围? [英] How do I make a chart use static values in place of a data range?

查看:72
本文介绍了如何使图表使用静态值代替数据范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VBA在Excel中现场创建图表,并为其预设值。

但是,图表采用数据范围。如何创建一个包含两个值180的图表,而不是必须在工作表中定义它并使用它们?

I'm trying to create charts on the spot in Excel using VBA, with preset values for it.
However, charts take data ranges. How can I make a chart with two values of 180, rather than having to define it in a worksheet and having it use those?

推荐答案

据我所知,这是不可能的。



通过使用单元格中的数据,Excel图表可以按照它们的方式工作。



Power Point图表正常运行。
As far as I know, it is not possible.

Excel charts are done especially to work the way they are, by using data in cells.

Power Point charts are working just the way you want.


这篇关于如何使图表使用静态值代替数据范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆