To record a macro:
Click Tools > VBA Macros > Record.
Name the macro and continue recording. Note that the macro name can only consist of alphabets, numbers and underscore characters.
Click on the box near Use Relative Reference if you want the cell referencing in the macro to be relative (A1, for instance) and not absolute* ($A$1 for instance).
Make the changes that you wish to be recorded in the macro.
Click on Stop Recording *image* icon near the notification to stop the process. You can also edit the recorded macro using the VBA editor.
Relative referencing - The cells are referenced without the "$" constraint, meaning the macro is executed with cells relative from where the macro is executed.
You can choose if you need absolute or relative referencing from the popup indicating that the macro is being recorded too.