- 帖子
- 559
- 主題
- 58
- 精華
- 0
- 積分
- 626
- 點名
- 0
- 作業系統
- win8
- 軟體版本
- office2013
- 閱讀權限
- 50
- 性別
- 男
- 來自
- TW
- 註冊時間
- 2010-11-22
- 最後登錄
- 2024-6-14
|
本帖最後由 hugh0620 於 2016-3-29 14:02 編輯
回復 4# hugh0620
用2007版本錄製巨集,原來只要修改語法就好了
FullSeriesCollection(1).Name = "=""循環時間"""
' .FullSeriesCollection(1).Values = 工作表5.Range(Cells(22, 12), Cells(22, A + 8)) '"='LBF-B'!$L$22:$BJ$22"
' .SeriesCollection.NewSeries
' .FullSeriesCollection(2).Name = "=""平均時間"""
' .FullSeriesCollection(2).Values = 工作表5.Range(Cells(23, 12), Cells(23, A + 8)) '"='LBF-B'!$L$98:$AW$98"
' .FullSeriesCollection(1).ChartType = xlColumnClustered
' .FullSeriesCollection(1).AxisGroup = 1
' .FullSeriesCollection(2).ChartType = xlLine
' .FullSeriesCollection(2).AxisGroup = 1
修改後
.SeriesCollection.NewSeries
.SeriesCollection(1).Name = "=""循環時間"""
.SeriesCollection(1).Values = 工作表5.Range(Cells(22, 12), Cells(22, A + 8)) '"='LBF-B'!$L$22:$BJ$22"
.SeriesCollection.NewSeries
.SeriesCollection(2).Name = "=""平均時間"""
.SeriesCollection(2).Values = 工作表5.Range(Cells(23, 12), Cells(23, A + 8)) '"='LBF-B'!$L$98:$AW$98"
.SeriesCollection(1).ChartType = xlColumnClustered
.SeriesCollection(1).AxisGroup = 1
.SeriesCollection(2).ChartType = xlLine
.SeriesCollection(2).AxisGroup = 1 |
|