Moving Project Items Among Templates and Documents

VBA macros are stored in projects. A project is a collection of modules, and in Word, each document or template contains a single project. Within each project, macros are stored in modules. A module is a collection of VBA code, such as procedures, functions, and other declarations. A project can contain any number of modules. Each macro is stored as a procedure, or collection of VBA statements, in a module. Each module can contain as many individual macros as you want. When you record a macro, Word stores the VBA code in a module named NewMacros.

NOTE

Modules can be added, renamed, and otherwise manipulated as required to obtain the desired functionality.

If you have a module containing some ...

Get Special Edition Using® Microsoft® Office Word 2003 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.