Record and run macros in Sheets
Record a macro in Foxcolab Sheets to repeat a series of edits, choose relative or fixed cells, then run it from the menu, a keyboard shortcut or a button on the sheet.
Updated 2 min read
In short
To record a macro in Foxcolab Sheets, choose Extensions, then Record macro, make your edits, and click Save in the recording bar. Name the macro and, if you like, give it a shortcut from Ctrl+Alt+Shift+0 to 9. Run it from Extensions, Run macro, with its shortcut, or from a button on the sheet. Macros are recorded edits, not code, and are saved inside the encrypted spreadsheet.
Key takeaways
- Extensions → Record macro starts recording. Every edit you make becomes a step.
- Relative replays the steps around whichever cell you select. Fixed cells replays them at the same addresses.
- Run a macro from Extensions → Run macro, with Ctrl+Alt+Shift and a number, or from a Button drawing.
- One Undo reverses a whole macro run.
- Macros contain no code. They're saved in the spreadsheet and end-to-end encrypted with it.
Last reviewed 3 December 2026
To record a macro in Foxcolab Sheets, choose Extensions → Record macro, make the edits you want to repeat, then click Save in the recording bar. Give the macro a name, and run it again whenever you need those steps: from the menu, with a keyboard shortcut or from a button on the sheet.
Macros in Sheets are recorded edits, not code. A macro can only do what you could do yourself through the menus, and it's saved inside the spreadsheet, so it's end-to-end encrypted with the rest of your data.
Record a macro#
Select the starting cell
Click the cell where the steps should begin, for example the first cell of a header row you want to format.
Start recording
Choose Extensions → Record macro. A bar appears at the bottom showing Recording and a step count.
Make your edits
Type, format, insert rows, sort, whatever the job needs. Each edit adds a step. Moving around the sheet doesn't.
Save
Click Save. Type a Macro name, choose a Shortcut if you want one, and click Save again.
To throw a recording away, click Cancel in the bar, or choose Extensions → Stop recording (discard). You can also start recording from Extensions → Manage macros → Record a macro.
Relative or fixed cells#
While recording, the bar lets you switch between two ways of replaying the steps. You can change it at any point before you save.
| Mode | When you run the macro | Use it for |
|---|---|---|
| Relative | The steps happen around the cell you've selected, in the same positions relative to it | Formatting any row, cleaning up whichever block you're on |
| Fixed cells | The steps happen at exactly the addresses you recorded, such as A1:F1 | Resetting a report, clearing the same input range every week |
Recording starts in Relative. Steps on the sheet you recorded on run on whichever sheet is open when you run the macro.
Run a macro#
- From the menu: choose Extensions → Run macro and pick it.
- With a shortcut: press Ctrl+Alt+Shift and the number you chose, or ⌘⌥⇧ and the number on a Mac.
- From the panel: open Extensions → Manage macros and click the play button next to its name.
- From a button on the sheet: choose Insert → Drawing → Button, select Assign macro in the button's toolbar and pick the macro under When clicked, run. Click the button to run it. Right-click the button when you want to move or edit it.
Before you run a relative macro, select the cell that matches where you started recording.
If a run doesn't do what you expected, choose Edit → Undo or press Ctrl+Z. One undo reverses the whole run.
What a macro can record#
Macros record edits to content and layout: typing and clearing cells, number formats and colors, borders, inserting and deleting rows, columns and cells, resizing and hiding, freezing, merging, sorting and filters, copying and pasting, notes and links, data validation, conditional formatting, and the Data cleanup tools. Adding or renaming sheets is recorded too.
Charts, pivot tables, images, tables and protected ranges aren't recorded. A macro holds up to 500 steps.
Manage and delete macros#
Open Extensions → Manage macros to see every macro in the spreadsheet with its number of steps, its mode and its shortcut. To delete one, click Delete macro and confirm.
Each shortcut number belongs to one macro. If you give a new macro a number another macro already uses, the older macro loses its shortcut.
Only people who can edit the spreadsheet can record or run macros. To run a macro automatically, add a rule under Extensions → Rules (automations) with the action Run a macro.
Related#
Frequently asked questions
Can I import the macros from my Excel file?
No. When you import an Excel .xlsm file, Sheets tells you Macros (VBA) are not imported. Your data and formulas come across. Record the steps you need again with Record macro.
Who can run a macro?
Anyone who can edit the spreadsheet. People with view or comment access can see the list in Manage macros, but can't run or record macros.
Can a macro run on a schedule?
Yes, through a rule. Open Extensions → Rules (automations), create a rule that runs every day at a time or when the workbook is opened, and add the action Run a macro. Rules run in an editor's browser while the spreadsheet is open.
Why did my macro change the wrong cells?
It was recorded as Relative, so it ran around the cell you had selected. Select the same starting cell you used when recording, or record it again with Fixed cells.
Did this answer your question?
One click, no account needed.
Still need help?
Our support team can take it from here.