O'Reilly logo

Writing Word Macros, Second Edition by Steven Roman PhD

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CustomizationContext

Before customizing the menu and toolbar system, you must set the context in which the changes will be saved. This is done by setting the CustomizationContext property of the Application object to a Template or Document object.

For example, the line:

	CustomizationContext = NormalTemplate

sets the customization context to the Normal template so that all changes will be saved in this template. The line:

	CustomizationContext = ActiveDocument.AttachedTemplate

sets the customization context to the attached template of the active document.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required