I've got following code in the beginning of my procedure:
but sometimes my function will result in an error. Is it possible to 'restore' the settings by following code
even if the function ends before the end of the code in the procedure?
Code:
With Application
.ScreenUpdating = False
.Calculation = xlCalculationManual
.Cursor = xlWait
.DisplayStatusBar = True
End With
but sometimes my function will result in an error. Is it possible to 'restore' the settings by following code
Code:
With Application
.Cursor = xlDefault
.StatusBar = False
.Calculation = xlCalculationAutomatic
.ScreenUpdating = True
End With
even if the function ends before the end of the code in the procedure?