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,050 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
Suggested Courses

623 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