I would like to provide line numbers for each line of text, then remove
lines without having the doc renumbered. Is that possible?
1 hello
2 bye
3 home
4 quiz
goes to
2 bye
3 home
not
1 bye
2 home
Assuming each line ends with a paragraph mark, and isn't wrapped or ended with
a line break (Shift+Enter):
Start by inserting a SEQ field at the start of each line. The quickest way to
do this is to
- use Insert > Field (in Word 2003) or Insert > Quick Parts > Field (in Word
2007 or 2010) to insert one on the first line, followed by a space;
- copy that field and space to the clipboard;
- then open the Replace dialog and enter
^p
in the Find What box and
^&^c
in the Replace With box, and click Replace All.
Now select all (Ctrl+A) and press F9 to update all the fields. Then either
- unlink all the fields (Ctrl+Shift+F9) to turn them into plain text;
or
- lock all the fields (Ctrl+F11) to prevent them from being updated later
unless you unlock them (Ctrl+Shift+F11).
Now the numbers won't change as you remove lines.