How to disable certain code segment?
On Nov 24, 9:26 am, "Sing" wrote:
Dear Excel Gurus,
In C, one can mask off certain code segment by using macros like;
#ifndef DISABLE_XXX
//Code to be disabled
#endif
How can I do the same thing for Excel VBA?
Thank you in advance.
If Condition = TRUE Then
Exit Sub ' to terminate execution of the sub
and return to the calling Sub
End ' to terminate and close (almost)
everything. See the VBA help for details.
EndIF
|