[VBA ]引入其他sheets的資料

看板Visual_Basic作者時間17年前 (2008/06/14 00:33), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
以下是我插入圖表的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
或許我沒搞懂這個問題,但是把sheet4改成sheet1不OK嗎?
06/14 07:31, 1F

06/14 10:19, , 2F
呃,我的意思是指我的折線圖的資料參數同時有sheets1和
06/14 10:19, 2F

06/14 10:20, , 3F
sheets4的 那code該如何下?
06/14 10:20, 3F
文章代碼(AID): #18Kg5K2k (Visual_Basic)