formatting text files

  • Thread starter Thread starter Dave Schafer
  • Start date Start date
D

Dave Schafer

I have an application that creates text files with a .cod
extension. I would like to have these files open with a
specific header and footer without the additional steps
of importing them into a Word template.
I have altered my Normal.dot to get new Word docs to be
formatted correctly and I changed my file associations so
that the .cod files open in Word.
Is it possible to have the text files open within a
specific template without the additional steps of
importing, etc...?
 
If you've changed normal.dot to have the info you want and changed the file association for the type of file you are opening, you should have to do anything else. Anything you open in word should have the normal.dot applied

----- Dave Schafer wrote: ----

I have an application that creates text files with a .cod
extension. I would like to have these files open with a
specific header and footer without the additional steps
of importing them into a Word template.
I have altered my Normal.dot to get new Word docs to be
formatted correctly and I changed my file associations so
that the .cod files open in Word
Is it possible to have the text files open within a
specific template without the additional steps of
importing, etc...
 
Hi Dave,

Usually you would just create a new document based on your specific
template and then use "Insert > File" to insert the text file.
If that's too much trouble, maybe you could write your own "Sub
FileOpen()", with code to attach the special template if a user opens a
*.cod file.
But I think it's much trouble to go to, for saving a few seconds here and
there.

It might be more "cost efficient" to put a button on some toolbar that
creates a new document based on your special template. That macro should be
easy to record with the macro recorder, and saves you from navigating to
your template each time.

Regards,
Klaus
 
Note that if you added a text header/footer to Normal.dot, that
header/footer is likely to mess you up if you try to create labels or
envelopes. Better to create a dedicated template, as Klaus said.

DM
 
Thanks for the help... I ended up recording a macro in
normal.dot to create the header info, etc... It's not
automatic, but it will do...
 
Back
Top