ExitTool and DoNothing

My way of Exiting tool in case or error, also another sub that basically does nothing.
Two (or 4?) of my standard small subs that can standardize the work like...
Exiting sub safely without leaving anything behind, like Calculation or ScreenUpdating.
And DoNothing can be helpful by linking objects in Excel spreadsheet to it, instead of allowing users to selecting them and modifying them.


Public

Tested

My Own Work
Sub DoNothing()
   
End Sub
Sub ExitTool()
    ExitVBATool
End Sub
Sub ByeBye()
    ExitVBATool
End Sub
Sub ExitVBATool()
    Application.Calculation = xlCalculationAutomatic
    Application.ScreenUpdating = True
    Application.EnableEvents = True
    End
End Sub

Views 142 Downloads 35

VBA-Excel Components
ANmarAmdeen
764
Attachments
Revisions

v1.0