You can automate repetitive processes by creating a macro of a command or a group of commands that you use frequently. You can record, edit, save, and replay as many macros as you like.
Once you have your macros working properly, you can make them easier to use by associating them with graphical user interface (GUI) objects you create. For more information, see
Customizing Menus Using the Menu Builder and
Creating Dialog Boxes