Automated sequences of actions recorded in Sheets. Macros generate Apps Script code.
Recording a macro to format a table will let you play back that formatting step at any time. (See also Script Editor.)