Guys,

I am creating a template add-in in Word 2010 which modifies the Ribbon UI and allows the user to insert various Content Control with predefined properties, such as .Title, .Tag etc.

When the user is navigating through the document, the add-in also has to distinguish between different CCs (i.e. CCs added with the predefined properties or CCs inserted by the user in the normal way). To do this, I am using the CC OnEnter & OnExit events. When the add-in has identified an appropriate CC through its OnEnter event, it should set a public variable equal to the currently selected CC. This feature should work throughout all of the user's templates, which will be stored in a common folder.

Am I right in thinking that in order to identify and set a public variable equal to the selected CC, each of the user's templates will require code for the CC OnEnter & OnExit events stored in the templates ThisDocument module?

Is this correct or is there an easier way to accomplish this? Currently I have it working as described above, for a few templates.

Cheers,
Joe