這是我的代碼:ploting與宏多個數據系列在Excel
Dim i As Integer
Dim names1 As String
Dim names2 As String
Dim names3 As String
ActiveSheet.Shapes.AddChart2(240, xlXYScatterSmooth).Select
For i = 1 To 1
names1 = Cells(2, i + 1).Address
names2 = Range(Cells(3, i), Cells(85, i)).Address
names3 = Range(Cells(3, i + 1), Cells(85, i + 1)).Address
ActiveChart.SeriesCollection.NewSeries
ActiveChart.FullSeriesCollection(1).Name = "=Sheet3!" & names1
ActiveChart.FullSeriesCollection(1).XValues = "=Sheet3!" & names2
ActiveChart.FullSeriesCollection(1).Values = "=Sheet3!" & names3
Next i
X值列「I」時,Y值列「我+ 1」 現在我想在每一個循環它刪除現有的繪圖並繪製新的繪圖。所以我應該添加什麼來堆積彼此的情節?
你'For'循環是從'1要1' ??? –
我想確保它繪製第一組數據並將其刪除,以便將其更改爲「1至1」,並忘記在此處複製正確的版本。 – mojijoon
看到我的答案和代碼 –