#1
|
|||
|
|||
How to put line numbers on existing blank pages?
I have a document of a few hundred pages, comprising of blank pages (different page sizes and orientations) that I wish to put line numbers on. I can enable line numbering in word, however when I hold the enter key down, and get to the end of the first page, a new page is created. I don't want this, as I want the line numbers to flow onto the next blank page. Attached is a small sample of the blank pages that I wish to fill with line numbers (various sizes and orientation). I need a quick way to do this, as in practice I will have hundreds of blank pages, and the order,orientation, size of these blank pages must be preserved. I simply want line numbers from the top to bottom on these existing blank pages. Is there a setting I can change in word to enable this, or alternatively does anyone have any example of a macro script that would work?
|
#2
|
||||
|
||||
You can only have line numbers in a Word document in there are lines in the document to number. Your 'pages' merely contain section breaks. If you fill the pages with paragraph breaks then the pages are no longer empty. They would contain paragraphs without text.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
||||
|
||||
And/or line breaks... Either way the printed page will have only the line #s. Depending on the paragraph formatting, the line count will differ according to whatever mix of paragraph breaks and line breaks one uses.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
Quote:
Quote:
How can I fill the blank pages with line breaks or paragraph breaks so they are no longer empty? I am looking for an automated way to do this, so wondered if there was some macro code that could do it? Or alternatively can this be done by something like find and replace? |
#5
|
||||
|
||||
Perhaps you might start by telling us what you're trying to achieve...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Quote:
If I can just find a way to fill the blank pages with line breaks or paragraph breaks so they are no longer empty, then this would achieve everything I want. Maybe there is a way through find and replace? Or maybe a simple macro would do it? |
#7
|
|||
|
|||
Quote:
You can use a simple repeating macro to repeat whichever you use, a paragraph break or a line break (note, though, check your paragraph spacing as to whether you need any additional spacing between paragraphs. Allen Wyatt's Word Tips at tips.net has this as a suggested repeating code. As he mentions, your work will be made easier if you assign it to an easy keyboard shortcut so you can do it over and over again. Repeating Actions (Microsoft Word) I checked the FAQ, I hope it's okay to post a link to another site as I didn't see it was prohibited. This was one of the simpler solutions and clearly explained, and it allows you to do the repeat for all lines at once, or if you have to split them up you can employ it and vary the number for a different section. Are you assured your numbers will align with your PDF? That seems a tricky consideration. Best, Ann |
#8
|
||||
|
||||
Quote:
1. One would need to know the exact line-spacing used for all the lines in the PDF, not just the 'blank' ones; and 2. Word optimises the page layout for the currently-active printer, which can result in pagination changes just by changing printer drivers. In other words, some content, including numbers for 'blank' lines could end up on different pages. A macro could be written, but it wouldn't be simple.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
Quote:
|
#10
|
|||
|
|||
You can create two text boxes in your header in the right and left margin. Remove any border and put your line numbers in the text box. Align them. They should be set to be behind text.
|
#11
|
||||
|
||||
So it's not a problem if the number for the last blank line on a page to become a blank line at the top of the next page of text - or vice-versa???
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding a decimal point in an already existing column of numbers | wheddingsjr | Excel | 3 | 07-26-2019 07:41 AM |
get rid of line above page numbers at bottom of pages. | Joanrichmond | Word | 1 | 02-11-2014 12:57 PM |
Added page numbers and now printing unwanted blank pages. | galvax | Word | 2 | 12-18-2013 08:41 PM |
Deleting blank pages | Microsoftenquirer1000 | Word | 14 | 08-27-2012 01:24 PM |
hidden blank pages | mljm | Word | 3 | 06-19-2009 03:18 AM |