Create a VBA macro in sheet
To create a macro:
- Click Tools > VBA Macros > Create.
- The Create Macros menu is displayed.
- Name the macro that you wish to create. You can also describe the functioning of the macro. Note that the macro name can only consist of alphabets, numbers and underscore .
- You can choose to either record the macro or write the code for macro using VBA editor.