Word Macro to select all text in a sentence from the currrent curser position in the sentence to the end of the sentence including the full stop.

FaheemAhmadGul
FaheemAhmadGul used Ask the Experts™
on
I need help with Word Macro that would select all text in a sentence from the current cursor position (in the sentence) to the end of the sentence (marked by full stop).
So if I have a sentence "An apple a days is good for health. " and the cursor is just to letter "d" in the word "days" when I call the Macro all text to the right up to and including the full stop "days is good for health. " should get selected.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015
Commented:
Does this work for you?

Selection.MoveEnd Unit:=wdSentence, Count:=1

Open in new window

Author

Commented:
Many thanks.
Subodh Tiwari (Neeraj)Excel & VBA Expert
Most Valuable Expert 2018
Awarded 2015

Commented:
You're welcome Faheem!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial