Nelviticus
Programmer
Is there a way to obtain the Range of the word that contains the insertion point even if it's at the end of the word?
This is what I have at the moment:
It works if the insertion point is at the beginning or in the middle of the word, but if it's at the end (i.e. you've just typed it) it doesn't pick it up.
Regards
Nelviticus
This is what I have at the moment:
Code:
Dim objRange As Range
Set objRange = Selection.Range
objRange.Expand wdWord
It works if the insertion point is at the beginning or in the middle of the word, but if it's at the end (i.e. you've just typed it) it doesn't pick it up.
Regards
Nelviticus