Written by Allen Wyatt (last updated November 12, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003
Many of the tips used in ExcelTips rely upon macros in order to run. Some readers may not know how to enter a macro from scratch in Excel. There are actually two ways you can create macros. First you can record a macro, which is appropriate when you want to record a series of steps you perform quite often. The second method of creating a macro, writing one from scratch, is much more powerful. To create a macro from scratch, follow these steps:
If you are still using Excel 95, the easiest way to create a macro from scratch is to first record a "dummy" macro, and then edit that macro to create your final "from scratch" macro.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2712) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Writing a Macro from Scratch.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
Sometimes a macro command line can get very, very long. This can make it hard to understand when you look at it a month ...
Discover MorePart of the power of VBA is being able to control when some of your code executes and when it doesn't. A primary way to ...
Discover MoreSometimes, when you upgrade to a new version of Excel, you could run into a problem recording macros that you had no ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments