作者markchen ()
看板Visual_Basic
标题[VBA ]引入其他sheets的资料
时间Sat Jun 14 00:33:22 2008
以下是我插入图表的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
1F:推 Laird:或许我没搞懂这个问题,但是把sheet4改成sheet1不OK吗? 06/14 07:31
2F:→ markchen:呃,我的意思是指我的折线图的资料参数同时有sheets1和 06/14 10:19
3F:→ markchen:sheets4的 那code该如何下? 06/14 10:20