瀏覽單個文章
diolin
Basic Member
 

加入日期: Oct 2003
文章: 18
引用:
作者lgla1982
我在網路上有查到一個寫法:
Dim strErrorX As String
strErrorX = "=" & ActiveSheet.Name & "!" & Range("C1:C10").Address(ReferenceStyle:=xlR1C1)
With ActiveChart.SeriesCollection(1)
.ErrorBar Direction:=xlX, Include:=xlBoth, _
Type:=xlCustom, Amount:=strErrorX, MinusValues:= _
strErrorX
.ErrorBar Direction:=xlY, Include:=xlBoth, _
Type:=xlCustom, Amount:=strErrorX, MinusValues:= _
strErrorX
End With

但是他第二段我看不懂!?


strErrorX 印出來, 就是 =Sheet1!R1C3:R10C3
基本上跟你自己寫是一樣的

我在 Excel 2000 試, 一條數列的 Amount 只能是單獨一個數值, 新版有修改嗎?
舊 2010-06-11, 05:01 PM #9
回應時引用此文章
diolin離線中