View Single Post
  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Don Ellis Don Ellis is offline
external usenet poster
 
Posts: 15
Default Selecting sentence/paragraph with keyboard


Lene,

Thank you, for the the Esc warning and for the macros.

Making macros in Word is hardly intuitive. I was able to create
SelectCurrentSentence and assign it to Alt-S so I'm very pleased. That was
the one I was missing the most.

But when it came to creating SelectCurrentParagraph, I seem to only be able
to overwrite SelectCurrentSentence no matter what I do. I followed along the
linked instructions, but it seems I can only create a single macro. Oh, well,
I'm happy with that one.

Thanks very much... that one is great even if I never get another.

Don

"Lene Fredborg" wrote:

An additional comment:
It may take a little time getting used to F8 because it brings you into
extended selection mode. You need to press ESC to return to normal selection
mode (the current selection remains even if you press ESC). Note that you can
use Shift+F8 to reduce the selection, e.g. from paragraph to sentence to word.

Alternatively, you could use these macros and assign keyboard shortcuts to
them:

Public Sub SelectCurrentSentence()
'Selects the current sentence
Selection.Expand Unit:=wdSentence
End Sub

Public Sub SelectCurrentParagraph()
'selects current paragraph
Selection.Expand Unit:=wdParagraph
End Sub

If you need help on assigning shortcuts, see:
http://www.word.mvps.org/FAQs/Custom...roToHotkey.htm

If you need help on installing macros, see;
http://www.gmayor.com/installing_macro.htm

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word