Hi there
In my macro/Subs I start with Call Turn Functionality off (sub) and at the end Call Turn Functionality On (sub)
This are macros to turn certain things on and off to speed up calculations and stop screen flickering
If the macro is interupted or error occures, can I add error handling to at least turn functionality back on
I Have provided a sample of one of the subs if someone could assist to show how to add error handling:
I will then attemp to do the rest with other macros
Thank you
In my macro/Subs I start with Call Turn Functionality off (sub) and at the end Call Turn Functionality On (sub)
This are macros to turn certain things on and off to speed up calculations and stop screen flickering
If the macro is interupted or error occures, can I add error handling to at least turn functionality back on
I Have provided a sample of one of the subs if someone could assist to show how to add error handling:
VBA Code:
Sub FILTER_PERMEXPORT()
TurnOffFunctionality
ThisWorkbook.Worksheets("Perm Transfer").Range("O3:Z1000").ClearContents
Sheets("PERMENANT LIVING IN REGISTER").Range("C4:AV500").AdvancedFilter Action _
:=xlFilterCopy, CriteriaRange:=Range("'Perm Transfer'!Criteria_P"), _
CopyToRange:=Range("'Perm Transfer'!Extract_P"), Unique:=False
Call Sort_perm2
TurnOnFunctionality
End Sub
I will then attemp to do the rest with other macros
Thank you