作者A1pha ([αλφα])
看板Visual_Basic
标题[VBA ] 请问用VBA制作图表时,可以一气呵成吗?
时间Tue Aug 17 18:09:00 2010
请问一下,
用VBA制作图表的时候,
有办法「一气呵成」吗?
目前我的状况是,
我选取一个二维的数据,
并且要把他变成「曲面图」,
我的写法是这样的:
Range(A5,AZ60).Select
(这范围不是实际状况..实际是一堆变数和运算,太长了就不列了)
ActiveSheet.Shapes.AddChart.Select
With ActiveChart
.ChartType = xlSurfaceTopViewWireframe
.Axes(xlValue).MajorUnit = 50
End With
可是这样的时候,
他会先把选取的范围中的数值变成长条图,显现出来,
之後再变成曲面图...
虽然说最後还是出现我想要的结果,
但是由於数据很多,
先变成长条图之後再转换,中间会顿一下,顿很久...
非常不顺畅....
不知道有没有办法在一开始时,就以曲面图的方式呈现,
这样的话,就不会顿一下顿很久了QQ
--
"Every kid who has dreamed of being a baseball player has stood in his front
yard with a bat and said to himself, "Bottom of the ninth, Game 7 of the
World Series, the bases are loaded," and then envisioned hitting a home run
to win the game. My job is to shatter that dream."
By Huston Street
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.202.55.129