Re: Creating word outline automatically from a text file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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" <Roy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6C89E47A-A8CA-4DF2-B698-8944267AADAA@xxxxxxxxxxxxxxxx
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" <Roy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:74BEA79D-3774-47C4-ABC9-C53652B08B9A@xxxxxxxxxxxxxxxx
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)






.



Relevant Pages

  • Re: Print Data Only & Ref Fields
    ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... form fields and ref fields and I need to print them both. ...
    (microsoft.public.word.vba.general)
  • Re: Print Data Only & Ref Fields
    ... form fields and ref fields and I need to print them both. ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ...
    (microsoft.public.word.vba.general)
  • Re: How do I set up automatic numbering?
    ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... "Charles Kenyon" wrote: ...
    (microsoft.public.word.docmanagement)
  • Re: Word saving conflict with hp scanjet 5590
    ... You can uninstall it using the Add/Remove programs Control Panel. ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ...
    (microsoft.public.word.application.errors)
  • Re: Word 2003 will not open folders to access or save files
    ... Word New User FAQ & Web Directory: http://addbalance.com/word ... Microsoft's Legal Users' Guide) http://addbalance.com/usersguide ... This message is posted to a newsgroup. ... Please post replies ...
    (microsoft.public.word.docmanagement)