Dear BPC VBA Macro expert,
Please help how to speed up the process time of VBA macros when logged on to SAP BPC?
For example I have a simple macro to calculate value before saving input schedule at BPC:
-------------------------------------------------------------------
Sub ADJ_GENERAL(x, adjust, output, source, cmb)
If (Range(cmb & 22) <> 0 Or Range(cmb & 22) <> Null) Then
Do While Workbooks(ActiveWorkbook.Name).Sheets("General Price").Range("I" & x) <> ""
Range(adjust & x) = Range(cmb & 22) / (1 + Range("L19"))
Range(cmb & x) = Range(output & x)
Range(output & x) = Range(output & x) + Range(adjust & x)
x = x + 1
Loop
End If
End Sub
Sub CALCULATE_GENERAL()
Call ADJ_GENERAL(26, "L", "M", "I", "K")
End Sub
-------------------------------------------------------------------
When connected to SAP BPC this process very slow ( 158 second to process 200 row data), and when not connected to SAP BPC this process just 3 second for the same row data.
Now, I just do log off to process calculation and login to save the result in input schedule then log off again to process another calculation and login again to save input schedule.
Do I have a missing syntax in VBA for this process? Or anyone have tips to speed up this performance because I have to process a big row data.
Thanks.
Yoni