Mobile menu

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

Salvador Scofano and Gry Midttun
Norway
Local time: 04:17
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.


Direct link Reply with quote
 

Rufino Pérez De La Sierra  Identity Verified
Canada
Local time: 23:17
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


Direct link Reply with quote
 

Jerzy Czopik  Identity Verified
Germany
Local time: 04:17
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


Direct link Reply with quote
 

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

Hi Jerzy,

This solves the problem!

Thank you,
Salvador


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 04:17
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


Direct link Reply with quote
 

Salvador Scofano and Gry Midttun
Norway
Local time: 04:17
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


Direct link Reply with quote
 

Jabberwock  Identity Verified
Poland
Local time: 04:17
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]


Direct link Reply with quote
 


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






LSP.expert
You’re a freelance translator? LSP.expert helps you manage your daily translation jobs. It’s easy, fast and secure.

How about you start tracking translation jobs and sending invoices in minutes? You can also manage your clients and generate reports about your business activities. So you always keep a clear view on your planning, AND you get a free 30 day trial period!

More info »
PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »



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