1
我想從Excel圖表中獲取特定值。這是我創建的圖表(我創建了一個反向二項式分佈圖)代碼:從excel圖表中獲取特定值與vba
Dim lim As String
Dim N As Long
N = Range("C4").Value
Dim x, s, p As Double
x = Range("C6") 'event number
s = Range("C5") 'sample size
Dim g() As Long
Dim h() As Double
Dim k() As Double
Dim prob() As Double
ReDim g(N)
ReDim prob(N)
ReDim h(N)
ReDim k(N)
For i = 1 To N
g(i) = i
h(i) = i/N
k(i) = 1 - h(i)
prob(i) = WorksheetFunction.BinomDist(x, s, h(i), False) * 100
End If
我需要的,其中y是0的分佈曲線第二個時間點。
嗨,這是你的所有代碼?或者For循環中有更多? – Moosli
這是我所有的代碼。 – OykuA