Anyone comment with following code so that speed up CPU calculation in looping?
Code:
Application.Calculation = xlCalculationAutomatic
Do while
...
Do
Application.Calculation = xlCalculationMaunal
mid = (high + low) / 2 'bi-section
Range("f" & r1) = mid 'input tick
rows(r1-1 &":"& r1).Calculate 'rows calculation
scan_M = Range("be" & r1) 'output signal
If scan_M <> scan_H Then
low = mid
ElseIf scan_M <> scan_L Then
high = mid
End If
Loop While high - low > delta
Application.Calculation = xlCalculationAutomatic
...
loop