autotext entry into it's own document

D

Diane

Group,
The autotext entries in our 'normal.dot' has grown very large. I would like
to write a macro that could read the list of autotext entries and save the
autotext into it's own document. Is this even possible, if so, any pointers
how to begin with this?
Thanks
Diane
 
J

Jay Freedman

Get the AutoTextDumper and AutoTextLoader templates from
http://jay-freedman.info.

The AutoTextDumper gets the AutoText entries from any template (Normal.dot
by default) and writes them into a table in an ordinary document. You can
use the document purely as a backup, or you can edit the items in the table
and add or delete entries.

The AutoTextLoader reads the items from the table in the document, and saves
them as AutoText entries in any template. If you specify a template name
that doesn't exist yet, it will (after asking permission) create the
template.

After you've transferred all the entries to another template in this way,
you could remove some or all of them from Normal.dot. Place the template
containing the entries into Word's Startup folder (as set in the Tools >
Options > File Locations dialog), and all the entries will be available in
all documents, just as they were when they existed in Normal.dot.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
D

Diane

Jay,
Thank you for the post, I've downloaded both and all seems to work. I will
need to modify the Auto TextDumper, instead of writing to a table, I need
each autotext in it's own individual document, 500 autotext entries, needs to
be 500 documents.
I'll play with the code provided in the auto textdumper, if you have
additional samples of what I'm trying to accomplish that would also be great.
Thanks again.
Diane
 
F

fumei via OfficeKB.com

Hi Diane. I am just very curious. Why do you "need" individual documents
for each AutoText? I am not disputing that you may in fact require this, but
it seems a very inefficient use of Word. I am trying to think of some
technical or business case for such an arrangement.
Jay,
Thank you for the post, I've downloaded both and all seems to work. I will
need to modify the Auto TextDumper, instead of writing to a table, I need
each autotext in it's own individual document, 500 autotext entries, needs to
be 500 documents.
I'll play with the code provided in the auto textdumper, if you have
additional samples of what I'm trying to accomplish that would also be great.
Thanks again.
Diane
Get the AutoTextDumper and AutoTextLoader templates from
http://jay-freedman.info.
[quoted text clipped - 22 lines]
 
D

Diane

fumei,
I just found your post and you have me interested, you may have other
suggestions not thought of.... (hope you are still listening...)
I have 20 secretaries, each secretary having the same 500 + autotext entries
in their own individual "normal" template. A VB program has been created
that will search a central directory for the now 500 + documents and will
create a document to the customer. So what was an autotext entry of "art1",
is now a document "art1", located in a central directory on the server. The
individual will key "art1", invisible to them the program searches a
directory for "art1", not the autotext entry "art1", and the document now is
created.
That's a quick overview of what I am trying to accomplish. Always
interested in other ideas!
Diane

fumei via OfficeKB.com said:
Hi Diane. I am just very curious. Why do you "need" individual documents
for each AutoText? I am not disputing that you may in fact require this, but
it seems a very inefficient use of Word. I am trying to think of some
technical or business case for such an arrangement.
Jay,
Thank you for the post, I've downloaded both and all seems to work. I will
need to modify the Auto TextDumper, instead of writing to a table, I need
each autotext in it's own individual document, 500 autotext entries, needs to
be 500 documents.
I'll play with the code provided in the auto textdumper, if you have
additional samples of what I'm trying to accomplish that would also be great.
Thanks again.
Diane
Get the AutoTextDumper and AutoTextLoader templates from
http://jay-freedman.info.
[quoted text clipped - 22 lines]
Thanks
Diane
 
F

fumei via OfficeKB.com

That seems very inefficient to me. An autotext is an autotext, whether it is
in normal.dot, or another template. Yes, unlike normal.dot, you must ensure
the other template is available, but that is not an issue really. You can
ensure this by either loading it automatically, as a global template, by
having it in Startup.

Or you can have it anywhere you like on your network, and load it up when you
like.

In other words, you can put all those autotext into ONE template, and use
them just like you normally would use an autotext. Exactly the same way.

Having individual files and having a VB program to search for and get the
contents of separate documents seems crazy to me.
fumei,
I just found your post and you have me interested, you may have other
suggestions not thought of.... (hope you are still listening...)
I have 20 secretaries, each secretary having the same 500 + autotext entries
in their own individual "normal" template. A VB program has been created
that will search a central directory for the now 500 + documents and will
create a document to the customer. So what was an autotext entry of "art1",
is now a document "art1", located in a central directory on the server. The
individual will key "art1", invisible to them the program searches a
directory for "art1", not the autotext entry "art1", and the document now is
created.
That's a quick overview of what I am trying to accomplish. Always
interested in other ideas!
Diane
Hi Diane. I am just very curious. Why do you "need" individual documents
for each AutoText? I am not disputing that you may in fact require this, but
[quoted text clipped - 16 lines]
 
D

Diane

fumei,
I'm not interested in doing anything crazy, I'm listening to what you are
saying, but I have a couple of questions:
autotext - is there a limit to the number of entries that you add to a
template. I understand that as you add autotext entries, the larger the
template size is, do you limit the size of any template? We have directories
with about 2500 documents, these secretaries would love to have all documents
in autotext - I'm hesitant to do this because of the size of the template.

I should have explained, the VB program not only searches directories to
create the document, it also replaces "docvariables" that is included with
these documents with date from a DB2 database. The program searches for the
docvariable "money" and reads from the datafile for the money amount. On
average, each document contains 6 different document variables that the VB
program will update and create/print the letters.

You really have me thinking about the autotext template, if I keep with
autotext entries, I will need to build in docvariables. I'm guessing that
will not be an issue, docvariables inside autotext vs. docvariables inside a
document.

Thanks for your thoughts!
Diane
fumei via OfficeKB.com said:
That seems very inefficient to me. An autotext is an autotext, whether it is
in normal.dot, or another template. Yes, unlike normal.dot, you must ensure
the other template is available, but that is not an issue really. You can
ensure this by either loading it automatically, as a global template, by
having it in Startup.

Or you can have it anywhere you like on your network, and load it up when you
like.

In other words, you can put all those autotext into ONE template, and use
them just like you normally would use an autotext. Exactly the same way.

Having individual files and having a VB program to search for and get the
contents of separate documents seems crazy to me.
fumei,
I just found your post and you have me interested, you may have other
suggestions not thought of.... (hope you are still listening...)
I have 20 secretaries, each secretary having the same 500 + autotext entries
in their own individual "normal" template. A VB program has been created
that will search a central directory for the now 500 + documents and will
create a document to the customer. So what was an autotext entry of "art1",
is now a document "art1", located in a central directory on the server. The
individual will key "art1", invisible to them the program searches a
directory for "art1", not the autotext entry "art1", and the document now is
created.
That's a quick overview of what I am trying to accomplish. Always
interested in other ideas!
Diane
Hi Diane. I am just very curious. Why do you "need" individual documents
for each AutoText? I am not disputing that you may in fact require this, but
[quoted text clipped - 16 lines]
Thanks
Diane
 
P

Peter

Is there a version of autotextdumper that works with word 2007. I cn get it
to work with 2003 but not 2007 and I am not sure why.

Peter Evans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top