Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

force autotext to be saved in a template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jb914 - 20 Sep 2006 08:02 GMT
I have some lengthy templates with lots of autotextlist fields. the
autotextlist fields are constantly growing with new autotext that i create
on the fly within the field by typing the text and creating a new autotext
entry.

is there a way to add code to the template that forces any newly created
autotext fields to a particular template?  if i have a c:\program
files\autotext\myautotext.dot file can i force any new entries
i create 'on the fly' in a template field to be saved to this above file
instead of the normal.dot?

I don't want to loose all the autotext entries added when/if the normal.dot
gets corrupted.  which we all know rarely happens in MS Word ;^)

thanks
Tony Jollans - 20 Sep 2006 13:46 GMT
Unfortunately there is no easy way to do this.

AutoTexts are added to the template selected under "Look in" on the AutoText
tab of the AutoCorrect Dialog. There is no direct VBA access to this and, as
far as I know, the only way to touch it is by using SendKeys with the
Dialog - far from ideal in an automacro.

--
Enjoy,
Tony

> I have some lengthy templates with lots of autotextlist fields. the
> autotextlist fields are constantly growing with new autotext that i create
[quoted text clipped - 11 lines]
>
> thanks
jb914 - 21 Sep 2006 00:19 GMT
thanks for the reply.  i was afraid of that.

is there a way to automate transfering it from the normal.dot to
myautotext.dot thru a macro?
thanks

> Unfortunately there is no easy way to do this.
>
[quoted text clipped - 27 lines]
>>
>> thanks
Jay Freedman - 21 Sep 2006 01:41 GMT
Yes, you transfer AutoText entries from Normal.dot to any particular
other template.

One method is to open the Organizer (Tools > Templates & Add-ins >
Organizer), click the AutoText tab, open the two templates in the two
list boxes, and do what you want.

You can write a macro to do the same. The Application.OrganizerCopy
and Application.OrganizerDelete methods are documented in the VBA
help. (There is no OrganizerMove method; instead, do a copy followed
by a delete.)

Finally, you can work indirectly through an intermediate document.
Download the AutoTextDumper and AutoTextLoader templates from
http://jay-freedman.info and study their code.

What you cannot do, as far as I'm aware, is to automate the selection
of a particular template for the Add AutoText dialog while you're
working in the user interface.

--
Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

>thanks for the reply.  i was afraid of that.
>
[quoted text clipped - 33 lines]
>>>
>>> thanks
Tony Jollans - 21 Sep 2006 07:32 GMT
Just to add to what Jay has said, using the Organizer does not maintain the
styles. You will need a purpose built or third party application for that .
I don't know if Jay's utilities do it - I guess I should take a look :-)

--
Enjoy,
Tony

> Yes, you transfer AutoText entries from Normal.dot to any particular
> other template.
[quoted text clipped - 60 lines]
> >>>
> >>> thanks
Jen - 11 Oct 2006 14:12 GMT
A quick way is to copy Normal.dot and rename it to your new name.dot. That
saves copying styles and autotext.

A great tool is AutotextMgr at http://www.cdev.co.uk/autotext-manager.htm

There are some cool new features on the way too. Just in testing now.

Regards
Jen

> Just to add to what Jay has said, using the Organizer does not maintain
> the
[quoted text clipped - 73 lines]
>> >>>
>> >>> thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.