Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I assign a keyboard shortcut to delete just one line of text in Microsoft Office Word 2010?
A macro based solution (in Visual Basic) which could be assigned to a custom keyboard shortcut would be good too.

Some similar examples:

  • in Notepad++ I can delete (cut) the entire current line with Ctrl+L
  • in NetBeans, I can delete an entire line with Ctrl+E
  • in Eclipse, I can delete current line with Ctrl+D
  • etc.
share|improve this question

2 Answers 2

up vote 3 down vote accepted

Macro-based shortcut

OK, based on our comment discussion here's a macro based solution.

  1. Create a new Macro with the following code (Alt+F8, specify the name, click Create):

    Selection.HomeKey Unit:=wdLine 
    Selection.EndKey Unit:=wdLine, Extend:=wdExtend 
    Selection.Delete Unit:=wdCharacter, Count:=1
  2. Assign a keyboard shortcut to it:

    • File > Option > Customize Ribbon
    • Click on Keyboard shortcuts: Customize (bottom left)
    • Scroll down the Categories list and select Macros, choose your new macro
    • Press the shortcut key combination (e.g. Ctrl+D)
    • Click Assign
    • Close > OK

And you are done. Now you can press Ctrl+D whenever your cursor is on a line and it will perform Home - Shift+End - Delete sequence for you which will delete the line.

Hopefully, that will work for you. Cheers!

(Initial) Answer that uses a mouse click

If by "row" you mean a line of text then the simplest way (I think) is to click in the left margin on the line you want to delete and hit Del key. If you want to avoid using the mouse then I'd go for the approach suggested by @SoftArtisans.

share|improve this answer
@Dmitry S: hi, thanks, but it's not a KEYBOARD SHORTCUT solution, so it really isn't an answer to my question at all... :) Yepp, and you were right, I used the word "row" in a wrong way, because I didn't know it's just used for tables in English when talking about documents. I corrected the title of my question from "row" to "line", thanks for drawing attention to it. –  Sk8erPeter Jun 22 '11 at 0:07
@Sk8erPeter Ok, fair point. I suggest you include your comment to the other answer in the question to clarify it further what kind of short cut you are looking for. I'll have a wee think how to implement what you are after using VBA if that's the path you are willing to go down –  Dmitry Selitskiy Jun 22 '11 at 0:09
@Dmitry S: OK, good idea to copy the previous comment to the original question. :) Edit: oh yeah, that would be great, if you suggested a solution in VB too! Thanks in advance! In the meantime, I also try to implement this. :) –  Sk8erPeter Jun 22 '11 at 0:11
@Sk8erPeter see updated answer :) –  Dmitry Selitskiy Jun 23 '11 at 8:52
@Dmitry S: wow, that's simply perfect!! It works, and it really simplifies my job in many cases, thank you very much! :) Respect. :) (BTW I also wanted to vote up your comment, but I need 2 more "points" to do that. :P) –  Sk8erPeter Jun 23 '11 at 14:30

It's not a single shortcut, but you can hit Shift + End to select the entire line of text and then hit Backspace to delete it. If you are at the beginning of the line of text, you'll get the whole line. If not, you can press Home first to get to the beginning of the line.

share|improve this answer
Hi, thanks for your answer, but unfortunately this doesn't really solve my problem, because I wanted to avoid multiple clicks and/or pushing multiple buttons, even if I click in the middle of the line of text. :) For example, in Notepad++ I can delete the entire current line with Ctrl+L, in NetBeans, I can delete an entire line with Ctrl+E, in Eclipse, I can delete current line with Ctrl+D, etc., where it doesn't really matter where my mouse cursor is actually... so there are these simple solutions, which I look for in Word too.It really would simplify my work in huge documents. –  Sk8erPeter Jun 22 '11 at 0:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.