Solved

Word 2010 - VBA  code to bring cursor to the left side  of screen (start of line) and more

Posted on 2014-01-26
1
1,030 Views
Last Modified: 2014-02-04
Hi:
I need help coding the following:
I have my cursor in the middle of a line of text.
I need code to bring cursor to the left side  of the document screen (start of line) in a document and move down one line.
Wait 5 seconds.
move cursor down one line.
Wait 5 seconds.
End of macro.
0
Comment
Question by:brothertruffle880
1 Comment
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39810019
Try this:
Sub test()
   Selection.MoveStart unit:=wdLine
   Selection.MoveDown unit:=wdLine, Count:=1
   sleep (5000)
   Selection.MoveDown unit:=wdLine, Count:=1
   sleep (5000)
End Sub

Open in new window

HTH,
Dan
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question