A more powerful way of creating macros is to write your own. The principles are described in the Macro User Guide.
Macros enable you to:
Click Help > Documentation > Parameters >Reference > Functions to list all the standard functions you can use in macros.
For more information see the Programming Language Guide.