Saving Changes to Your Macros

When you make changes to macros—by recording new macros or by editing your VBA code—you should save your work often. Because VBA code is stored in templates and documents, all you have to do is to save the file that contains the code.

From within the VBE, simply select a module in the project Explorer, or a code window in the project you want to save. Then click the Save button on the Standard toolbar or press Ctrl+S.

Caution

Because errors are common in macro programming, it is extremely important to get in the habit of saving your work often. In particular, if you have edited your code in any way, you should save ...

Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.