Selecting a word via keyboard shortcuts
Thread poster: Salvador Scofano and Gry Midttun

Salvador Scofano and Gry Midttun
Norway
Local time: 22:57
Member (2006)
English to Portuguese
+ ...
Apr 12, 2006

Hi,

Does anybody know how to select a word via keyboard shortcuts?

I am trying to find an alternative to the double-click.

The idea is to place the cursor in the middle of the word and then using this shortcut.

Thanks in advance.


 

Rufino Pérez De La Sierra  Identity Verified
Canada
Local time: 17:57
English to Spanish
+ ...
Use a MAcro Apr 12, 2006

I think this can only be done by using a Macro (Tools/ Macro/ Record new macro), and this way you can choose your own shortcut..

Good luck!

Rufino


 

Jerzy Czopik  Identity Verified
Germany
Local time: 22:57
Member (2003)
Polish to German
+ ...
Simply use the existing shortcuts Apr 12, 2006

Selecting is SHIFT+ARROW (UP, DOWN, RIGHT, LEFT).
To select a word, place the cursor before or behind it (to move the cursor use CTRL+ARROW), and then press CTRL+SHIFT+ARROW).

HTH
Jerzy


 

Salvador Scofano and Gry Midttun
Norway
Local time: 22:57
Member (2006)
English to Portuguese
+ ...
TOPIC STARTER
This solves the problem Apr 12, 2006

Hi Jerzy,

This solves the problem!

Thank you,
Salvador


 

Samuel Murray  Identity Verified
Netherlands
Local time: 22:57
Member (2006)
English to Afrikaans
+ ...
Try this macro Apr 12, 2006

Salvador Scofano wrote:
The idea is to place the cursor in the middle of the word and then using this shortcut.


Try this macro (assign a keyboard shortcut to it):

Sub AA()
'
' AA Macro
' Macro recorded 12/04/2006 by Foo
'
Selection.MoveLeft Unit:=wdWord, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
End Sub


 

Salvador Scofano and Gry Midttun
Norway
Local time: 22:57
Member (2006)
English to Portuguese
+ ...
TOPIC STARTER
Macro Apr 12, 2006

Hi Samuel,

Thank you for the macro.
I will try it in the future (for a change I am pretty busy).

Regards,
Salvador


 

Jaroslaw Michalak  Identity Verified
Poland
Local time: 22:57
Member (2004)
English to Polish
Small correction Apr 12, 2006

Samuel Murray wrote:
Selection.MoveLeft Unit:=wdWord, Count:=1
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
End Sub



I understand the reason for the last line in the macro (as when you select a word it is selected with a space after it), but it does not work too well if there is no space after a word, but a comma or a period (then the last letter of the word is deselected).

The macro below should do the trick:


Sub SelectWord()

Selection.Words(1).Select
Selection.MoveEndWhile " ", wdBackward

End Sub


Of course, if selection of the space after the word is desirable (as it often is), you can skip the second line.

If the macro is run when there is already a selection with text, then of course it will select the first word.

[Edited at 2006-04-12 14:20]


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Selecting a word via keyboard shortcuts

Advanced search






SDL MultiTerm 2019
Guarantee a unified, consistent and high-quality translation with terminology software by the industry leaders.

SDL MultiTerm 2019 allows translators to create one central location to store and manage multilingual terminology, and with SDL MultiTerm Extract 2019 you can automatically create term lists from your existing documentation to save time.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use SDL Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search