Word VBA, Move Cursor to End of Line

Using the code snippet below you can move the cursor to the end of the Line:

Selection.EndKey Unit:=wdLine

Assume the cursor is somewhere in the middle of a line:

Word VBA Move Cursor To Start of Line

Result after using the code above:

Word VBA Move Cursor to End of Line Result

 

See also:

If you need assistance with your code, or you are looking for a VBA programmer to hire feel free to contact me. Also please visit my website www.software-solutions-online.com

Leave a Reply

Your email address will not be published. Required fields are marked *