【发布时间】:2020-10-07 00:43:19
【问题描述】:
我想要多个系列图。
我将这段代码显示为三行。
但是,它不起作用,我不能使用Range,因为我的数据源稀疏在三行("I1:I30","I51:I80","I101:I131")
With ActiveSheet.Shapes.AddChart.Chart
.HasTitle = True
.ChartTitle.Text = "My Graph"
.ChartType = xlLine
.SetSourceData Range("I1:I30","I51:I80","I101:I131") 'thats the data for three lines I want to show.
.SeriesCollection(1).Name = "item1"
.SeriesCollection(1).XValues = Range("G1:G30")
我该如何解决这个问题?
【问题讨论】: