I'm in the process of (hopefully) improving the overall use of Word
XP in our small office. Being a self-taught newbie to VBA, I've found
this newsgroup to be of real value as a source of info and tips.

As part of the process, I've created a global template ( called
RI_Global.dot) which will hold, amongst other things, all our
generic autotext entries, ie - ones we want to be available all the
time in any document.

What I'm seeking guidance about concerns the way a new user-created
autotext entry is "saved" to a template. My understanding is that the
default choice is the normal.dot template, whereas I want the entry to
be saved into RI_Global.dot.

Is it possible to "force" a newly created AutoText entry to be saved
into RI_Global.dot, rather than relying on the users to remember to
choose this template when they access the Insert/AutoText/AutoText
command? Also, can I intercept the "Alt+F3" shortcut to again force the
entry to be saved to my global template?

I've found the appropriate(?) dialog which might be interceptable [ie:
Dialogs(wdDialogEditAutoText)], but I can't see how any of the options
can be manipulated through VBA. Using the macro recorder and selecting
the global template from the "Look in:" drop-down box doesn't shed any
light on the steps involved when I look at the resulting code.

Thanks in anticipation.
Regards,
Gavin

Re: Programatically adding new autotext entries to a global template by Jay

Jay
Wed Aug 17 22:05:44 CDT 2005

Hi Gavin,

Download Autotextloader from http://jay-freedman.info and look at the
code. You're welcome to adapt the code in any way. If that template
already does what you want, you're also welcome to just use it.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org

On 17 Aug 2005 17:13:18 -0700, "Gavin" <miflin62@yahoo.com> wrote:

>I'm in the process of (hopefully) improving the overall use of Word
>XP in our small office. Being a self-taught newbie to VBA, I've found
>this newsgroup to be of real value as a source of info and tips.
>
>As part of the process, I've created a global template ( called
>RI_Global.dot) which will hold, amongst other things, all our
>generic autotext entries, ie - ones we want to be available all the
>time in any document.
>
>What I'm seeking guidance about concerns the way a new user-created
>autotext entry is "saved" to a template. My understanding is that the
>default choice is the normal.dot template, whereas I want the entry to
>be saved into RI_Global.dot.
>
>Is it possible to "force" a newly created AutoText entry to be saved
>into RI_Global.dot, rather than relying on the users to remember to
>choose this template when they access the Insert/AutoText/AutoText
>command? Also, can I intercept the "Alt+F3" shortcut to again force the
>entry to be saved to my global template?
>
>I've found the appropriate(?) dialog which might be interceptable [ie:
>Dialogs(wdDialogEditAutoText)], but I can't see how any of the options
>can be manipulated through VBA. Using the macro recorder and selecting
>the global template from the "Look in:" drop-down box doesn't shed any
>light on the steps involved when I look at the resulting code.
>
>Thanks in anticipation.
>Regards,
>Gavin