Re: Apply Multiple Templates? What's the right approach? by Chad
Chad
Thu Aug 26 16:36:16 CDT 2004
kiln,
Inserting the text would be the easy part. Much more problematic would be
how to get it from 50 different sources. I still think autotext is the way
to go, but you could still build a custom interface for inserting those
particular autotext entries, to help sell it to the end user. Then you
could just give the Autotext entries meaningful names that you could use as
the list items in your listbox, so to insert them use something like:
Set oAT = ActiveDocument.Attached Template
oAT.AutoTextEntries(lbxEntries.Value).Insert Range:=Selection.Range,
RichText:=True
Regards,
Chad
"kiln" <kiln@brick-like.com> wrote in message
news:MPG.1b97f3e1a14366619898c7@msnews.microsoft.com...
> Hi Chad
>
> The autotext option might work. This lady is pretty set in her ways and
> I'm trying to have as little impact on her preferences as I can. Not
> sure how she'd take to the autotext option. However, I see the point -
> she is only after text and autotext might be a better way to apply it.
>
> An alternate might be if I could have her click on a button on a toolbar
> and pick from a userform listbox an entry that would insert, at the
> approprate place, the content of one of her templates. That would allow
> her to maintain her dot files in the way she is used to. What area of
> word vba would I look at in order to evaulate the difficulty of
> inserting the text, the userform and listbox I am familiar with.
>
> Thanks
>
>
> In article <OJ90c26iEHA.536@TK2MSFTNGP11.phx.gbl>, "Chad DeMeyer"
> <cjdemeye at bechtel dot com> says...
> > kiln,
> >
> > If you don't want the custom toolbar to be available for all Word docs,
you
> > could show her how to manually load it as an add-in using
Tools>Templates
> > and Add-Ins, then unload it through the same dialog when she is finished
> > with the toolbar. Alternatively, she could just leave it as a global
but
> > only display the toolbar when she needs it.
> >
> > It's not clear whether the 50 templates serve any other purpose than
> > providing boilerplate text for this operation, but even if they do, for
this
> > I would suggest having one template with 50 autotext entries. She can
> > attach the document to the template, again with Tools>Templates and
Add-Ins.
> > Then she has access to all the autotext entries.
> >
> > Regards,
> > Chad
> >
> >
> > "kiln" <kiln@brick-like.com> wrote in message
> > news:MPG.1b97e81735948a399898c6@msnews.microsoft.com...
> > > Thanks
> > >
> > > The second stage person has been starting new docs from any of 50
> > > templates. They contain different version of boilerplate and it saves
a
> > > lot of cut and paste. At the time that I generate the doc in the first
> > > step, it's not clear which of the 50 templates might apply.
> > >
> > > I don't want the custom toolbar to be available for all word docs, so
> > > I'm not sure placing it in the global pool would be appropriate.
> > >
> > > In article <uAfwGb6iEHA.1348@tk2msftngp13.phx.gbl>, "Chad DeMeyer"
> > > <cjdemeye at bechtel dot com> says...
> > > > kiln,
> > > >
> > > > I'm not sure I understand what she is doing. In what way is she
using
> > > > various templates to fill in sections of the document?
> > > >
> > > > In any case, you should have her store your template in her Word
startup
> > > > location - she can determine what that location is using
> > Tools>Options>File
> > > > Locations>Startup. Have her copy the template to that folder, then
> > restart
> > > > Word. The template is now loaded as a global add-in when Word
starts,
> > which
> > > > means that just like Normal.dot, its macros and toolbar/keyboard
> > > > customizations are always accessible in every document.
> > > >
> > > > Regards,
> > > > Chad
> > > >