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,022 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 34

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Nice table. Huge mess. Maybe this was something you created way back before you figured out tabs or a document you received from someone else. Either way, using the spacebar to separate the columns resulted in a mess. Trying to convert text to t…
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…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now