返回或設(shè)置移動平均趨勢線的周期。Long 類型,可讀寫。
示例
本示例設(shè)置移動平均趨勢線的周期。本示例應(yīng)在二維柱形圖上運行,該柱形圖應(yīng)包含單個數(shù)據(jù)系列,該數(shù)據(jù)系列應(yīng)有十個數(shù)據(jù)點及一條移動平均趨勢線。
With myChart.SeriesCollection(1).Trendlines(1)
If .Type = xlMovingAvg Then .Period = 5
End With