[VBA ]引入其他sheets的資料
以下是我插入圖表的code ---我引入折線圖
Charts.Add
ActiveChart.ChartType = xlLine
ActiveChart.SetSourceData
Source:=Sheets("Sheet4").Range("A1:A66,C1:C66"), _
PlotBy:=xlColumns
ActiveChart.Location Where:=xlLocationAsObject, Name:="Sheet4"
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "test"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "input"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "output"
End With
請問一下 以上我的折線圖的source是來自於sheets4的A1:A66及C1:C66
如果 我想引入 sheet1的A1:A66及C1:66 該如何加入?
--
================================格鬥擂台=======================================
http://myurl.com.tw/rpm8 貝德卡瑪 vs 發電機(擁有十級功力)
http://myurl.com.tw/of28 貝德卡瑪 vs 希斯科(芝加哥庄腳的街頭混混)
http://myurl.com.tw/r40p 貝德卡瑪 vs 影武者(死亡訓綀!)
===============================================================================
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.161.165.92
推
06/14 07:31, , 1F
06/14 07:31, 1F
→
06/14 10:19, , 2F
06/14 10:19, 2F
→
06/14 10:20, , 3F
06/14 10:20, 3F