is it possible to do something like:
what if the code doesn't have IF condition to compare anything with. Here the comparison is whole code executed. Not sure if this practical. Any insights which can guide me.Function Apple() As Variant --code-- 'If code runs well then it is successful. if error comes it is " failed". If code = successful Then Apple = True Else Apple = False ' when error occurred anywhere in the code End If End Function![]()