Autotext - set the 'Look In' drop down to a specific template

R

Rue

Hi all

Is it possible to programmatically set Autotext 'Look in:' drop down field
to display autotext from a specific template using VBA?

I am using the code below to show the Autotext menu where a user then
selects the desired entry, but I am hoping to only show entries from the
attached template:
Dialogs(wdDialogEditAutoText).Display

I also tried turning on the Autotext toolbar but this also doesn't allow you
to display entries from the attached template only.

Thanks in advance.
 
J

Jean-Guy Marcil

Rue said:
Hi all

Is it possible to programmatically set Autotext 'Look in:' drop down field
to display autotext from a specific template using VBA?

I am using the code below to show the Autotext menu where a user then
selects the desired entry, but I am hoping to only show entries from the
attached template:
Dialogs(wdDialogEditAutoText).Display

I also tried turning on the Autotext toolbar but this also doesn't allow you
to display entries from the attached template only.

This is rather difficult to accomplish. There is no direct access to that
dropdown via VBA.

The bet you can hope is a kludgy "SendKeys" alternative. But, unless you
have total confidence that all users using your code will have the same list
in that dropdown, it is difficult to control...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top