Hi,
I'm using Excel 2013. I would like to use some of the following code to speed up my processing.
My question if I have 10 macros running sequentially one after the other must I put the above mentioned code in every single macro? Can I put the 1st 4 lines of the above mentioned code in the 1st macro & the last 3 lines in the 10th macro?
Explained slightly differently can I do this to save my coding time?
Thanks for your advice.
I'm using Excel 2013. I would like to use some of the following code to speed up my processing.
Code:
Sub test()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.CutCopyMode = False
Application.DisplayStatusBar = False
'run any code
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.DisplayStatusBar = True
End Sub
Explained slightly differently can I do this to save my coding time?
Code:
Sub macro1()
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.CutCopyMode = False
Application.DisplayStatusBar = False
'run any code
End Sub
Code:
Sub macro10()
'run any code
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
Application.DisplayStatusBar = True
End Sub
Thanks for your advice.