G'day (e-mail address removed),
Lets say its a range you have, like selection.range
then simply .range.movestart wdstory,-1 and use
..range.paragraphs.count
(e-mail address removed) was spinning this yarn:
I would like to know how to do this so I can stop my macro once it reach
a certain line or paragraph.
When my macro is parseing the document I can't tell the position of the
cursor and thus stop the macro when it reaches the paragraph where it
needs to stops.
Steve Hudson
Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
wordheretic.com
Replies offlist may require payment.