E
Ed
I set a range to encompass one line, which is an entire paragraph by itself.
This line begins with a space. After doing some things, I collapse the
range to the start and MoveStart to the beginning of the document using:
rngFind.Collapse Direction:=wdCollapseStart
rngFind.MoveStart Unit:=wdStory, Count:=-1
For debugging, I put in Range.Select - the selected text is exactly what I
want: everything from the first character of the doc to the paragraph mark
just before the original range. The now-set range does not include the
leading space of the original range.
When I delete this second range I have set, the leading space of the
original range is also removed. Is this normal and consistent Word
behavior? Is there a setting that will turn this off? Or a better way to
set the second range?
Ed
This line begins with a space. After doing some things, I collapse the
range to the start and MoveStart to the beginning of the document using:
rngFind.Collapse Direction:=wdCollapseStart
rngFind.MoveStart Unit:=wdStory, Count:=-1
For debugging, I put in Range.Select - the selected text is exactly what I
want: everything from the first character of the doc to the paragraph mark
just before the original range. The now-set range does not include the
leading space of the original range.
When I delete this second range I have set, the leading space of the
original range is also removed. Is this normal and consistent Word
behavior? Is there a setting that will turn this off? Or a better way to
set the second range?
Ed