How to set calculation mode to manual within Excel application scope when opening an excel file?

Hi All,
Those who face similar issue, i found a solution as explained below:

use excel application scope
add activity “Invoke VBA code”
image

Save this code as => VBA.ManualCalculation.txt

        Public Function UpdateCalculation()

          Application.Calculation = xlCalculationManual
          Application.ScreenUpdating = False
            
        End Function

*Use the above code in excel application scope before processing, for eg: if you want to delete range or use copy paste range *

After the processing your logic, invoke VBA again as below:
image

Save this code as => VBA.AutomaticCalculation.txt

Public Function UpdateCalculation()
   
  Application.Calculation = xlCalculationAutomatic
  Application.ScreenUpdating = True

End Function

Before using the Manual Calculation mode the overall processing took 10 min to update the excel, now its just 34 seconds. Give it a try…!!

If you face any issue invoking the VBA, refer to the settings here:

thanks to @Palaniyappan.

Best Regards.

1 Like