After you create a macro, you can edit it to change the way it works. When creating a macro, you are recording your mouse clicks and keystrokes.
If you have tasks in Excel 365 that you perform repeatedly, you can record a macro to automate those tasks.