Is there a way for a Word Add-In to get the current cursor position within the document/on screen (e.g. to display my own control next to it)?
In Microsoft Word, you may quickly move the cursor to the location of the last edit you made to a document by pressing the keyboard shortcut Shift + F5 . Pressing this shortcut again moves back to the position two edits ago.
Using a combination of keystrokes can also move the cursor further – e.g. holding down the Ctrl (control) key and pressing the left arrow key will move the cursor left one word. Holding down Ctrl and pressing the up arrow key will move the cursor to the start of each paragraph.
Have you tried the Cursor.Position
property?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With