On-board macro recording is possible by holding down Competition mode for 5 seconds.

This functionality is disabled if Fnatic OP software is open (or is a background process) on your PC.
You may use the OP software to add macros, or close the OP software process and record an on-board macro.

More details on how to record on-board macros available here.