#1
|
|||
|
|||
Move cursor
How to move cursor to top of 1st paragraph of the current visible part of de active document view with vba? Thanks.
__________________
Backup your original file before doing any modification. |
#2
|
|||
|
|||
Hi, eduzs! If the visible part is the active doc, use the following code to move the cursor to the doc's start:
Code:
selection.HomeKey wdStory |
#3
|
|||
|
|||
Thanks, but this brings to the top of the document.
I want to move the selection to the top of current view area. Example: Open document with 10 pages, pagedown till page 5, at this point I see page 5 in the screen, but the cursor is still in the page 1. I want to move the cursor to the top most paragraph/position of the visible range of text.
__________________
Backup your original file before doing any modification. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UserForm : Allow user to move cursor in document | Souriane | Word VBA | 2 | 06-07-2021 12:58 PM |
VBA Find a string and move the cursor to it | mdlewis | Word VBA | 3 | 02-13-2020 03:53 AM |
macro to auto move cursor to start column | byron | Excel Programming | 7 | 12-23-2019 05:38 AM |
move cursor | anand | Word VBA | 14 | 07-07-2015 05:57 AM |
can't move the cursor in Word | pieboy | Word | 2 | 02-13-2009 07:15 PM |