Re: using a template to open a text file
- From: "Herb Tyson [MVP]" <herb@xxxxxxxxxx>
- Date: Wed, 25 Jun 2008 09:30:48 -0400
PS... the formatting Word uses for text files is determined by a style. When you open a text file, Word applies the Plain Text style to what you opened. By default, Word is using Normal.dot (or Normal.dotm in Word 2007) for the formatting. So, the approach of applying a template to it would work immediately only if you were to redefine the Plain Text style... which I don't think you want to do.
Rather than that, using Graham Mayor's suggested AutoOpen macro provides one solution.
An easier and perhaps quicker solution would be to press Ctrl+A, then Ctrl+Shift+N, which applies the Normal style to the text document, giving you a starting point that has your basic formatting defaults.
Another option is to use Word's AutoFormat command, which will also convert text with hard line breaks into wrapped paragraphs as well as apply heading styles where appropriate (usually): Format - AutoFormat.
--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com
"Herb Tyson [MVP]" <herb@xxxxxxxxxx> wrote in message news:e5onPln1IHA.5560@xxxxxxxxxxxxxxxxxxxxxxx
What version of Word? In Word 2003 and earlier, try Tools - Templates and Add-ins - Attach. After specifying the desired template, tick Automatically update document styles.
--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com
<tester> wrote in message news:Ov3XOrk1IHA.4772@xxxxxxxxxxxxxxxxxxxxxxxIs there a way to open a text file and have it pick up the default fonts and page settings? It always opens in word in courier font, whereas my default font is times new roman.
Or would there be a way to run word from a command line, passing in the template I want to use and the file I want to open.
.
- Follow-Ups:
- Re: using a template to open a text file
- From: Graham Mayor
- Re: using a template to open a text file
- References:
- using a template to open a text file
- From: tester
- Re: using a template to open a text file
- From: Herb Tyson [MVP]
- using a template to open a text file
- Prev by Date: Re: using a template to open a text file
- Next by Date: Re: using a template to open a text file
- Previous by thread: Re: using a template to open a text file
- Next by thread: Re: using a template to open a text file
- Index(es):
Relevant Pages
|