I'm having a problem which is driving me potty. I have some text in a doc and I'm trying to select potential hyperlinks. The document looks like this:
Testing text
<some hyperlink which this forum has prevented me from posting> some other text

testing
My code successfully identifies the line with the potential hyperlink, then detects where the space is in this line. I then set the selection to the beginning of this line.
After this point anything that I do results in the selection being extended to the full paragraph:
for instance selecting a single character by this method:
[vba]
Selection.HomeKey Unit:=wdLine
Selection.End = Selection.Start + 1
[/vba]
and by this method:
[vba]
Selection.HomeKey Unit:=wdLine
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend[/vba]

Both select the whole line. There seems to be no way to either select up to the first space, or select even a single character!
Any ideas what's going wrong for me? I've unchecked "Usesmart paragraph selection" in the options and it's made no difference.
Thanks in advance for any help.
J.