View Single Post
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Roy
 
Posts: n/a
Default Creating word outline automatically from a text file

Autoformat didn't help. I'll guess if I want to do it, I will take your
advice and write VBA code. Thanks for your help. (It seems like a simple
feature that I wish would be included in the product)

Roy.

"Charles Kenyon" wrote:

Using a copy of your text file, try AutoFormat and see what happens.

Otherwise, can you do it? Yes, by writing a separate vba program that
recognizes codes you put into your text file and applies heading styles as
you designate in response to those codes. Enjoy.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"Roy" wrote in message
...
Your solution is only from working within Word. My issue is that I have an
hierarchical information that I can generate a text file from. Then I want
Word to take this text file and import it as an outline. Can I do that?
Example:
Text file is (or any other format which I can programmatically generate):
1,A
2,B
2,C
1,D
2,E
3,G

Then Word needs to take this file and outline it like this:

+ A ----B
| ----C
|
+ D-----E
|-------G

(A is the parent of B and C, D is a sibling of A and a parent of E, E is a
parent of E)

Does someone know of a way to do it?
Roy.


"Charles Kenyon" wrote:

Apply appropriate heading styles and it will all fall into place using
Outline view. http://word.mvps.org/FAQs/Formatting/UsingOLView.htm
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"Roy" wrote in message
...
How can I create a word outline file from a text file. I can format the
text
file any way I want with the level information, but I couldn't find any
way
to import this to Word. I have some kind of hierarchy that I want to
view
using Word outline (when I can see levels and expand them ans search)