有大神修改这样做。
If a > 0 Then
If drr(a, 4) <> "平手" and drr(a, 4) <> "平手2" and drr(a, 4) <> "平手3" Then
drr(a, 7) = IIf(drr(a, 4) = drr(a - 1, 4) And drr(a, 2) = drr(a - 1, 2), Val(drr(a, 3)) - Val(drr(a - 1, 3)), "")
If drr(a, 4) = drr(a - 1, 4) And drr(a, 2) = drr(a - 1, 2) And InStr(drr(a, 4), "受") > 0 Then drr(a, 7) = Val(drr(a, 5)) - Val(drr(a - 1, 5))
End If
End If
'' drr(a, 8) = IIf(drr(a, 7) = "", "", IIf(drr(a, 7) > 0.11, "急速", "")))
drr(a, 8) = IIf(drr(a, 7) = "", "", IIf(drr(a, 7) >= gg, "急速", ""))
End If |