Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Wed, 18 Jun 2008 15:09:09 +1000,    group: microsoft.public.word.vba.beginners        back       


Autotext - set the 'Look In' drop down to a specific template   
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.
date: Wed, 18 Jun 2008 15:09:09 +1000   author:   Rue

RE: Autotext - set the 'Look In' drop down to a specific template   
"Rue" wrote:

> 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...
date: Wed, 18 Jun 2008 09:08:00 -0700   author:   Jean-Guy Marcil

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us