I need to e-mail about 125 very small text files ( on a daily basis). This
would seem arduous to me. What i would like to do is :
1.) open a word document
2.)open file #1 txt file, and copy it
3.) paste it into my word document
repeat until all text files are copied into Word doc.
I tried recording a macro doing this, but it didn't "record" when I went to
another directory to open up and copy the text files.
Any and all help in this matter would be most appreciated. Thank-you in
advance.
I've found that the problem with using a simple macro to do something
like this, is that what you get depends on where you are when you try
to get it! However, assuming that you don't use all 125 files in each
document and that the text in each remains constant, have you
considered creating an autotext for the contents of each of your text
files?
For example, suppose the first two text files were:
a. Now is the time for all good men to come to the aid of the party.
b. The quick brown fox jumped over the lazy dog.
The fastest way to create a series of autotexts:
1. Right-click on the toolbar, then check "Autotext". The toolbar
will appear!
2. Select the text, then click the "New" button on the autotext
toolbar - or, if you are not among the mouse-dependent, hit ALT+F3
after you've selected the text.
3. When prompted to "Please name your AutoText entry", just typeover
to replace with a single short word that is *meaningful* to you.
Using the two examples above, I would name the first <now> and the
second <quick> (without the <chevrons>).
If you click the "All Entries" button then "Normal", you will see a
list of the entries you've created.
Once you've created all 125 AutoText entries, you can select the ones
you want by clicking the entries in the list of "All entries" - or
typing each name you have assigned then a) hit the F3 key or b) hit
ENTER when you see the "tool tip", after you type each one.
If, however, the content of each text file changes frequently but the
filename remains constant, your best bet would be to assemble one
document in which you have inserted all the files as links:
Insert->File. Select the filename then click the arrow next to the
"Insert" button and select "Insert as link".
Save this document as a Template. [ File->Save as. Save as
type->Document Template (*.dot) ]
Each time you create a document based on this template [File->New],
select all the text (Ctrl+A) then hit the F9 key. This will update
the content to reflect any changes in the original files you inserted.
hro