You _can_ actually change the contents of an AutoText without inserting the
AutoText. You do this by setting the Value property.
Example: you want to replace the string “abc” in all AutoText entries in a
specific template (here MyTemplate) with “12345”. To do this:
Dim oAutoText As AutoTextEntry
For Each oAutoText In MyTemplate.AutoTextEntries
oAutoText.Value = Replace(oAutoText.Value, "abc", "12345")
Next oAutoText

Signature
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
> You pull in the contents of an AutoText, delete that AutoText, edit what you
> pulled in, and create the AutoText with the same name. This seems bad form
[quoted text clipped - 13 lines]
> >Fredrik E. Nilsen
> >http://fenilsen.wordpress.com
Fredrik - 06 Mar 2008 22:03 GMT
> You _can_ actually change the contents of an AutoText without inserting the
> AutoText. You do this by setting the Value property.
[quoted text clipped - 7 lines]
> oAutoText.Value = Replace(oAutoText.Value, "abc", "12345")
> Next oAutoText
Ah, fantastic. I found no information about this in the help file.
Thank you very much!
--
Fredrik E. Nilsen
http://fenilsen.wordpress.com