#1
|
|||
|
|||
Remove empty lines at the top of every page
Hi, I would like to perform the actions described below, in a Word document. Those two procedures must be performed for the same page, before moving on to the next page.
Example: Go to page 1: Remove all empty lines at the top of page 1 Search: ([!^13A-z]^13)(Nș) Replace: \1^13\2 ** Go to page 2: Remove all empty lines at the top of page 2 Search: ([!^13A-z]^13)(Nș) Replace: \1^13\2 ** And so on to the last page. Thank you. Last edited by dexter30; 07-18-2013 at 07:49 AM. |
#2
|
|||
|
|||
Any ideas? Anyone?
|
#3
|
|||
|
|||
Word does not know pages, it forms them on the fly according to the dictates of a printer driver. Therefore, programming pages in vba is an exercise in frustration, at least for me.
How are you marking the beginning/end of your pages? Why not simply do a replace for empty paragraphs, period? Properly written, a Word document will not have empty paragraphs. Pages will begin either when text flows into them (no empty paragraph) or because there was page break before formatting for the first paragraph (heading styles often have this). Again, no empty paragraphs. Basic concepts of Microsoft Word: An introduction Understanding Styles in Microsoft Word Basic Formatting in Microsoft Word |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to remove unwanted lines - I cannot even find how/where they are inserted! | nickib | Word | 7 | 08-09-2013 06:01 AM |
regular expressions for empty lines | eNGiNe | Word | 1 | 01-21-2013 06:38 AM |
How to remove that pesky empty Page | widescreenforever | Word | 1 | 11-28-2012 02:49 PM |
Deleting empty lines | lostsoul62 | Word | 5 | 04-16-2012 04:55 AM |
how to remove two lines? | mryevrah | Word | 2 | 05-05-2011 01:41 AM |