lines

A

Andrej Gobec

Hello!

I'm writing a macro that should convert a .txt file into a Word file in such
a way to eliminate multiple headers that are in the old file and put them
into a Word header. I'm working with old DOS files. I was using
ActiveDocument.Find and .Replace methods to find whatever I needed ...

The problem I'm facing is that sometimes I have lines that are longer than
what Word can manage or ... well, I'm not sure why it doesn't work. I was
using whole paragraphs as a search string, because I couldn't figure out how
to refer to a single line of text and it seems sometimes that is just too
much.

I don't know if there are any simple methods to be able to refer to a single
line in word document? That might help me a lot. Lines in my old files
usually end with a return (as a new paragraph), but in case of these long
lines I think they and with - soft return? (I guess that's what they're
called??)

Anyway, my question is how to reffer to a single line??

thanks,
Andrej
 
W

Word Heretic

G'day "Andrej Gobec" <[email protected]>,

move along each character until the .information for the end position
changes vertical relative to page.

Andrej Gobec said:
Hello!

I'm writing a macro that should convert a .txt file into a Word file in such
a way to eliminate multiple headers that are in the old file and put them
into a Word header. I'm working with old DOS files. I was using
ActiveDocument.Find and .Replace methods to find whatever I needed ...

The problem I'm facing is that sometimes I have lines that are longer than
what Word can manage or ... well, I'm not sure why it doesn't work. I was
using whole paragraphs as a search string, because I couldn't figure out how
to refer to a single line of text and it seems sometimes that is just too
much.

I don't know if there are any simple methods to be able to refer to a single
line in word document? That might help me a lot. Lines in my old files
usually end with a return (as a new paragraph), but in case of these long
lines I think they and with - soft return? (I guess that's what they're
called??)

Anyway, my question is how to reffer to a single line??

thanks,
Andrej

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top