Close macro after run

Many users run the macro.... if I want to make some changes - the macro is locked? Can I add some commands to release the macro after the user run it?

Solidworks do not give me a warning "not saved" when save the changes in the macro editor.

This is if I want to rename a macro file - to replace with a new:

SolidworksApi/macros