# Create Macros

Source: https://help.malighting.com/grandMA3/2.3/HTML/macro_create.html
This is grandocs, an unofficial mirror of MA Lighting documentation. For authoritative or safety-relevant information, cite the canonical page on help.malighting.com.

---
Create a macro using the GUI editor or the command line.

For a better understanding of macros, see the [Macros topic](/grandma3/2-3/macros/).

### Create a Macro

Requirement:

A visible macro pool. Open the Add window dialog, tap Data Pools, then tap Macros. 

1. Pressing Edit, then tapping an empty macro pool object, creates a new macro and opens the editor:

![](/img/grandma3/2-3/window_edit_macro_example_6-a301f1.png)

2. Tap Insert New Macro Line. The command editor opens:

![](/img/grandma3/2-3/window_command_editor_v2-2-3-af0662.png)

3. Write a command into the editor. See [Examples](/grandma3/2-3/macro_examples/) for more information.
4. Repeat steps 2 and 3 to add several lines.

There are several buttons in the editor. Here is a short explanation of the specific buttons:

- Settings:**** Enable Settings in the title bar to display the Name, Scribble, Appearance, Note, Lock, and CLI buttons.
- Test Macro Line:**** Tests only the selected line.
- Test Macro:**** Tests the macro.
- List References: For more information, see [Info Window](/grandma3/2-3/si_info_window/).
- Tapping Import will open a pop-up containing predefined macros. See [Import Macros](/grandma3/2-3/macro_import/).

When CLI is disabled (it is enabled by default), CLI is displayed in red text on the pool object, and the macro is executed without affecting the command line.

![](/img/grandma3/2-3/window_macro_cli_off-0ba03a.png)

Macro 3 with CLI deactivated