Can I run a macro and then undo it?

If I am coding with VBA in SolidWorks and I want to run a code to see how it behaves is there any way to go back to before I run the code? if I do not like the results. 

SolidworksApi/macros