【正文】
t you return to any one of the settings that disable all macros after you finish working with macros. For more information about how to change the settings, see Change macro security settings in Excel.3. On the Developer tab, in the Code group, click Record Macro.4. In the Macro name box, enter a name for the macro. NOTE The first character of the macro name must be a letter. Subsequent characters can be letters, numbers, or underscore characters. Spaces cannot be used in a macro name。 an underscore character works well as a word separator. If you use a macro name that is also a cell reference, you may get an error message that the macro name is not valid.5. To assign a CTRL bination shortcut key to run the macro, in the Shortcut key box, type any lowercase letter or uppercase letter that you want to use. NOTE The shortcut key will override any equivalent default Excel shortcut key while the workbook that contains the macro is open. For a list of CTRL bination shortcut keys that are already assigned in Excel, see Excel shortcut and function keys.6. In the Store macro in list, select the workbook where you want to store the macro. TIP If you want a macro to be available whenever you use Excel, select Personal Macro Workbook. When you select Personal Macro Workbook, Excel creates a hidden personal macro workbook () if it does not already exist, and saves the macro in this workbook. In Windows Vista, this workbook is saved in the C:\Users\user name\AppData\Local\Microsoft\Excel\XLStart folder. In Microsoft Windows XP, this workbook is saved in the C:\Documents and Settings\user name\Application Data\Microsoft\Ex