Word VBA, Move Cursor to Start of Line - VBA and VB.Net Tutorials, Education and Programming Services

Word VBA, Move Cursor to Start of Line

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

Selection.HomeKey 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 Start 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 *