Selecting a word via keyboard shortcuts Thread poster: Salvador Scofano and Gry Midttun
|
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. | | |
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 Germany Local time: 08:07
 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 | | | This solves the problem | Apr 12, 2006 |
Hi Jerzy,
This solves the problem!
Thank you,
Salvador | |
|
|
Samuel Murray Netherlands Local time: 08:07
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 | | |
Hi Samuel,
Thank you for the macro.
I will try it in the future (for a change I am pretty busy).
Regards,
Salvador | | | 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
TM-Town | Manage your TMs and Terms ... and boost your translation business
Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.
More info » |
| Protemos translation business management system | Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!
The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.
More info » |
|
| | | | X Sign in to your ProZ.com account... | | | | | |