返回

excel-为什么每个图表的最大数据系列数是255?

发布时间:2022-04-27 17:35:17 308
# 数据

如果我还没有给下面的代码分配源数据,我会疯狂地试图弄明白为什么下面的代码会产生最大数据系列数的错误!我只设定了它的大小。

Set myChart = .Shapes.AddChart2(XlChartType:=xlColumnStacked, Left:=ChartDestination.Cells(1).Left, Top:=ChartDestination.Cells(1).Top, Width:=ChartDestination.Width, Height:=ChartDestination.Height, NewLayout:=False).Chart

我已经把这个包好了With WsEnd With当然在这之前我设定ChartDestination详情如下:

Set ChartDestination = .Range(.Cells(y_chart, x_chart), .Cells(y_chart + h, x_chart + w))

其中y_图=65,x_图=31,h=25,w=10。我不知道我为什么会收到这个错误;不确定它适用于哪里。任何见解都将受到热烈欢迎!

特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们。
举报
评论区(0)
按点赞数排序
用户头像