Can a macro be used to alter another macro?

Have a look here:

Search the forum for other examples...