"keyboard shortcut" and "delete line"

M

Maisieb

In Word 2007, is there a keyboard shortcut that would allow me to delete all
words till the end of a line? Till the end of a sentence?
 
J

Jay Freedman

In Word 2007, is there a keyboard shortcut that would allow me to delete all
words till the end of a line? Till the end of a sentence?

There is no single command that does either of those things, so there
isn't any shortcut. However, you can install these two macros
(http://www.gmayor.com/installing_macro.htm) and then assign a
shortcut to each macro
(http://word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToHotkey.htm).

Sub DelToEndofLine()
Selection.EndKey Unit:=wdLine, Extend:=True
Selection.Delete
End Sub

Sub DelToEndofSentence()
Selection.End = Selection.Sentences(1).End
Selection.Delete
End Sub
 

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