If you’re not using macros, you’re ignoring one of Excel’s most powerful features. Macros save you time and spare you headaches by automating common, repetitive tasks. And you don’t have to be a programmer or know Visual Basic Applications (VBA) to write one. With Excel 2013, it's as simple as recording your keystrokes.
Here we’ll show you how to create macros for five commonly performed functions.
Macro Basics
To record a macro, click Record Macro under the Developer tab. In the Record Macro dialog box, enter the following information and click OK when you’re done.
Macro Name —the first character must be a letter, followed by your choice of letters, numbers, or an underscore. No other characters are accepted.