您好,我已经编写了用于生成图形的代码,并且它工作正常。问题是生成需要花费大量时间。我不明白为什么需要时间。代码是
Dim cc As Chart
Set cc = ActiveWorkbook.Charts.Add
Set cc = cc.Location(Where:=xlLocationAsObject, name:=assume)
With cc
.ChartType = xlXYScatterLines
With .Parent
.Top = Columns(b).Offset(0, 4).Top
.Left = Columns(b).Offset(0, 4).Left
.name = "cc"
End With
End With
Dim sc As Series
Set sc = cc.SeriesCollection(1)
With sc
.Values = Columns(b).Offset(0, -3)
.XValues = Columns(b).Offset(0, -5)
End With
请有人帮助我