How can I select a word using keyboard

A

amhagele

How can a single word (under the cursor) being selected in MS Word
(2000 or 2003)?
Just the same as the double-click with the mouse does. I can't seem to
find any reference in any help file or documentation.
I tried a macro as well but the Ctrl-Shift-Right to hilite to the end
of word is actually marking up to the beginning of the next word, ie
taking the space as well. so no goo either.

It's hard to believe that there is no shortcut assigned to this simple
task.

Cheers

Andreas Hagele
 
B

Barry Schwarz

How can a single word (under the cursor) being selected in MS Word
(2000 or 2003)?
Just the same as the double-click with the mouse does. I can't seem to
find any reference in any help file or documentation.
I tried a macro as well but the Ctrl-Shift-Right to hilite to the end
of word is actually marking up to the beginning of the next word, ie
taking the space as well. so no goo either.

It's hard to believe that there is no shortcut assigned to this simple
task.
If you are not at the beginning of the word, Ctrl-Left arrow. In
either case, Ctrl-Shift-Right arrow.

If you want to remove the trailing space from the selection,
Shift-Left arrow.


Remove del for email
 
A

amhagele

Barry,
thanks for that hint, but it's not quite working. The silly behaviour
to mark the space after the word does only happen if there is a space
of course. Is the word at the end of the line a Shift-left in a macro
will delete a character.
On that basis a macro would have to do something like this:
ctrl-left, ctrl-Shift-Right, if rightmost char is space do Shift-left.
Do you know how to code this into a macro?

The other problem with that macro is that the Ctrl-Shift-Right stops at
non alpha characters.
So having a word hello#12, a Ctrl-Shift-Right will only hilite hello.
It would be required that a macro to do the job correctly needs to have
a character table with valid chars for a word.
This gets all a bit complex.
It's hard to believe this big word processor hasn't got a simple
function like this built in.

Cheers
Andreas
 
B

Barry Schwarz

Your original post asked about double clicking which is not something
you do in a macro. You might have better luck asking in one of the
macro newsgroups such as microsoft.public.word.vba.general.

I'm not real strong on macros but I seem to remember something about
the ability to extend a selection and specify a unit (e.g., word,
character, paragraph) and a count.

Barry,
thanks for that hint, but it's not quite working. The silly behaviour
to mark the space after the word does only happen if there is a space
of course. Is the word at the end of the line a Shift-left in a macro
will delete a character.
On that basis a macro would have to do something like this:
ctrl-left, ctrl-Shift-Right, if rightmost char is space do Shift-left.
Do you know how to code this into a macro?

The other problem with that macro is that the Ctrl-Shift-Right stops at
non alpha characters.
So having a word hello#12, a Ctrl-Shift-Right will only hilite hello.
It would be required that a macro to do the job correctly needs to have
a character table with valid chars for a word.
This gets all a bit complex.
It's hard to believe this big word processor hasn't got a simple
function like this built in.

Cheers
Andreas


Remove del for email
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top