Paragraph Numbers

April 6, 2005 – 12:00 pm

Microsoft Word includes the ability to display line numbers in a document, as explained in last week’s newsletter. Unfortunately, it *doesn’t* include the ability to display paragraph numbers. And if you need to display paragraph numbers, that’s a problem. So, here’s a macro that will add a number, formatted as red and hidden, at the beginning of each paragraph:

Sub NumberParas()

Dim para, p

For Each para In ActiveDocument.Paragraphs

p = p + 1

para.Range.Select

Selection.MoveLeft Unit:=wdCharacter

Selection.Font.Hidden = True

Selection.Font.Color = wdColorRed

Selection.TypeText Text:=LTrim(Str(p))

Next para

End Sub

If you don’t know how to use such macros, you can learn how here:

http://lists.topica.com/lists/editorium/read/message.html?mid=17069228 55

Formatting the numbers as red means they will stand out from the rest of the text on your screen. Formatting them as hidden means you can hide or display them as needed by clicking the Show/Hide button on the Standard toolbar (View > Toolbars Standard). (The Show/Hide button is the one with a paragraph mark–technically a pilcrow–on it.)

To get *rid* of the paragraph numbers, make sure they’re showing. Then use Word’s Find and Replace feature (Edit > Replace) to Find numbers (^#) that are red and hidden and Replace them with nothing.

Or, if the book you’re working on actually needs paragraph numbers for reference in its final form, you could Find numbers that are red and hidden and Replace them with themselves (^&) formatted in some other way, such as superscript and not hidden. Better still, format them all with a character style so you can change them all at will and en masse.

Paragraph numbers may also come in handy if you want to use them as locators in a standalone indexing program such as Cindex–

http://www.indexres.com/cindex.html

–but want to use my DEXter indexing program to automatically embed your entries into a Word document:

http://www.editorium.com/dexter.htm

If that’s what you’re going to do, however, you’re probably better off going with line numbers, which will keep your index more accurate if the book’s pagination changes.

___________________________________________

_________________________________________

READERS WRITE

Word and legal expert Donna Payne (www.payneconsulting.com) wrote:

Quick note on the line numbers article. Line numbers in Word will not print next to each row of the table (only one of the rows), nor will it recognize text boxes and text boxes appropriately. I’ve suggested this as a fix to the Microsoft Word product development team.

Thanks, Donna!

_________________________________________

RESOURCES

Palindromes, cryptograms, crossword puzzles, anagrams, poetry, and lots of puzzle-solving tools are available at the National Puzzlers’ League. Besides all of the fun stuff, the site has lots of neat word lists that really ought to be useful for something (editing? indexing? find-and-replace lists?):

http://puzzlers.org/

While you’re having fun, why not enjoy a chuckle and vote for my nephew, Ryan Hamilton, at Sierra Mist’s Next Great Comic site?

http://www.nextgreatcomic.com/home.php

You can vote ten times a day! All in one go! Thanks!

_____________________________________________________

THE FINE PRINT

Editorium Update (ISSN 1534-1283) is published by:

The EDITORIUM, LLC

Microsoft Word Add-Ins for Publishing Professionals

http://www.editorium.com

Copyright © 2008 by the Editorium. All rights reserved. Editorium Update and Editorium are trademarks of the Editorium.

You may forward copies of Editorium Update to yourself and others (but not charge for it) and print or store it for your own use. Any other broadcast, publication, retransmission, copying, or storage, without written permission from the Editorium, is prohibited. Send reprint requests to reprints [at symbol] editorium.com

Editorium Update is provided for informational purposes only and without a warranty of any kind, either express or implied, including but not limited to implied warranties of merchantability, fitness for a particular purpose, and freedom from infringement. The user assumes the entire risk as to the accuracy and use of this document.

The Editorium is not affiliated with Microsoft Corporation.

_____________________________________________________

HOW TO SUBSCRIBE OR UNSUBSCRIBE

To subscribe, send a blank email message to editorium-subscribe [at symbol] topica.com.

To unsubscribe, send a blank email message to editorium-unsubscribe [at symbol] topica.com.

We do not sell, rent, or give our subscriber list to anyone.

____________________________________________________

You must be logged in to post a comment.