Hi Paul
> - how, within a VBA subroutine, do you register the availability of the
> Global Templates?
Open the global template. In the VBE, in the Project Explorer, right-click
your file (it probably says "Template project") and give it a useful name.
Save. Close.
Open the template. In the VBE, use Tools > References to create a reference
to the add-in. It will be listed under the name you gave it.
> - how do you then call a subroutine from a Global Template?
Call the function as, eg, x=MyAddin.MyFunction
> I have spent nearly 10 hours researching this question today,
Next time you have a problem like this, search the google groups archive at
http://groups.google.com.au/advanced_search?hl=en
A search for 'call subroutine from Global Template' with the group set to
microsoft.public.word.* gets your answer in a flash.
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
>I have created some Word templates which contain several VBA macros
> (sub/function) in common.
[quoted text clipped - 15 lines]
> Your help would be very much appreciated.
> Paul J
Paul J - 27 Jan 2007 10:37 GMT
Please accept my gratefull thanks, Shauna.
> Hi Paul
>
[quoted text clipped - 41 lines]
> > Your help would be very much appreciated.
> > Paul J