There are a number of ways by which you can run a macro automatically. A macro can be run depending on what you want to run a macros automatically for. You can gain in-depth knowledge of this task by visiting this Microsoft page.