

This option specifies where the macro can be used. Macros in Excel can apply to This Workbook, New Workbook or Personal Macro Workbook. So we had better set different shortcut key for different macros that macros would not be confusing, when we use shortcut key to run Macro in Excel workbook. In Excel 2010, Shortcut key is set to begin recording steps into a macro, and used to run macro after creation. For example, if you want to bundle steps of creating title in table into macro, you can call macro “ CreateTableTitle”. So give it a name with actual meaning could let you easily distinguish to run it later in Excel workbook. Macro name is the direct description about the macro you are going to create.

Step 2: Set Macro parameters for new macros in Record Macro dialog. Then Record Macro dialog appears, and several options have to be set in this dialog before macro creation. Just click it when you think you are ready to create a macro. If you want to create macros in Excel 2010, it is enough for you to do with “Record Macro” button.
#Developer tab excel 2007 add code#
In Developer – Code group, there is a button Record Macro.

Step 1: Click Record Macro button in Developer tab.
#Developer tab excel 2007 add how to#
Section 2: How to create macros for MS Excel 2010 workbook Now Excel 2007/2010 is ready for you to create macros. In following pop-up Trust Center dialog, click Macro Settings, and check Enable all macros (not recommended potentially dangerous code can run) under Macro Settings option. On Developer tab, in Code group, click Macro Security.Ģ. Therefore, if you want to do anything about Macros in workbook or worksheet, such as create Macros or delete Macros in Excel, Macros has to be enabled at first.ġ. In Excel default settings, Macros is disabled in Excel 2007/2010. Section 1: How to enable Macros in MS Excel 2010
