Re: Dual AutoText Lists?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Tom O'Neill (tsocat_at_comcast.net)
Date: 06/27/04


Date: Sun, 27 Jun 2004 21:39:26 GMT

Hi Cindy,

Thanks for generating some ideas for me to pursue. The STYLE approach fails,
since words from either list will be used at the spot in the document where
the entries are to be inserted. Also, running my own "find and display" in a
combo box isn't a possibility, since I could never hope to match the speed
of the AutoText engine.

However, your SendKeys idea gets the job done. When the project opens, I
attach the 2nd (Chemical names) template to join up with the original custom
template (containing the Technical Terms). Then, when I summon the macro via
the 2nd of 2 custom toolbar buttons, SendKeys
{Tab}{Tab}"Chem"{Enter}{Tab}{Tab}"{Tab}{Tab}{Tab} chooses the 2nd custom
template and puts the cursor back to the "Enter AutoText Entries here:".
Low-tech, I suppose, but perfectly effective. Now, just so Mister Softy
doesn't redesign the A/T dialog box...

Regards and thanks,
Tom O'Neill

"Cindy M -WordMVP-" <C.Meister-C@hispeed.ch> wrote in message
news:VA.00009c56.0095f70d@speedy...
> Hi Tom,
>
> > My custom template permits form-driven data entry. A custom toolbar
button
> > activates Word's Autotext dialog box. Two problems are apparent:
> >
> Yeah, it's a real pain that MS has disabled direct arguments to this list.
The
> only way I know is to use SendKeys just before .Showing the dialog box.
>
> Since you're willing to use the toolbar, I take it you don't rely on the
user
> needing to see the Preview? Here are some thoughts, maybe one will go in a
> direction you can use
>
> - Did you know AutoText can be sorted by category? The STYLE with which an
> entry is formatted determines in which category it's listed. If the
documents
> have a particular style name where these entries would be inserted (body
text,
> for example) you could apply this style to the entries, as they're
created.
> Then only these entries would show in the toolbar list when the selection
is
> in text formatted with that style
>
> - You could use a similar approach to populate your own combobox list, in
a
> toolbar. Or your own dialog box. Have a macro that runs through the
AutoText
> in only your template, picking up only the entries of a certain style (or
all
> entries)
>
> > 1. In the AutoText combo box "Look in:", 'All Active Templates' appears
by
> > default. I must use the dropdown to select my custom template, limiting
the
> > word list to "only" 10,000 Technical Terms and excludes normal.dot's
Yours
> > truly, Best Wishes, etc. I cannot come up with VBA coding to preselect
my
> > custom template. I've tried hundreds of Properties, Methods, and
wdDialog's
> > hoping to discover an undocumented way in to Word's AutoText engine. Any
> > ideas?
> >
> > 2. I have a list of 5,000 names of chemical compounds, which I need to
add
> > to the AutoText list. Ideally, I would like to access an
"AutoText/Chemical"
> > toolbar button which would bring up the AT dialog box with just the
chemical
> > names, not the Technical Terms. I believe I can attach that list to a
2nd
> > template, which would isolate what the user sees. However, that brings
us
> > back to Question 1 above - the inability to preselect which template in
the
> > "Look in:" box is active.
> >
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply in the newsgroup and not by e-mail :-)
>


Quantcast