
How to move to the beginning of a paragraph
Hi Frank,
Quote:
> Does anyone has a more full proof way to get to the beginning of the current
> paragraph?
Well, normally I wouldn't even MOVE to the beginning of any paragraph.
Usually, I want to process a document without moving the cursor: that's
faster, and more accurate.
In the case I would (because the user should start typing there, for
instance), then I'd collapse the range, and select that point. Roughly:
Dim rng as Word.Range
Set rng = Selection.Range.Paragraphs(1).Range
rng.Collapse wdCollapseStart
rng.Select
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.mvps.org/word
http://go.compuserve.com/MSOfficeForum
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)