The basic idea if you want it to apply only to certain documents is to make the modifications in the document template.
The basic examples do not require any macros. You get into macros when you start using controls that are not already a built-in Control. Note that generally you want any macros used by your Ribbon modification to be in the same template as the modifications. If there is a chance that the document will not be "attached" to that template, you would want your macros in a separate global template that would be loaded and available to your document.
|