Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Find/Replace or VBA to remove character ?

What this sounds to me like is a text document in which page numbers have
been inserted manually as part of the document text. Assuming that the "page
number" is in a separate paragraph, these could be removed with three
Replace passes (it could probably be done in one with wildcards, but I
usually find it faster to do multiple passes than to figure out the correct
wildcard syntax).

First pass: Replace ^p^#^#^#^p with ^p
Second pass: Replace ^p^#^#^p with ^p
Third pass: Replace ^p^#^p with ^p

The first pass will remove all the three-digit numbers and the paragraph
they're in. The second and third passes take care of the two-digit and then
one-digit numbers.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org

"Peter T. Daniels" wrote in message
...
Probably your document has both Headers and Footers. Place your cursor
down below the main text, somewhere near where the page number you
don't want is, and double-click.

This will change the focus of Word to the Footer, which will now be
black instead of grayed-out. You can then simply delete the page
number (no matter what page you happen to be on when you do it.)

To go back to your text, double-click anywhere in the text.

The page breaks / distribution of lines will not change. If you want
to put another line or two on the page (in the space freed up by
removing the extra page number), then you need to go into the Page
Setup display and change the Margin for the Footer. (You can't
actually make the Footer go away after it's been used in a document,
but you can reduce it to nothing. When you delete the page number,
also delete the paragraph mark in the Footer.)

On Apr 26, 11:40 pm, davidku wrote:
Hi,

In my MS Word document, there are about 300 pages.
I need to remove the last line of each page if it is a number.

Any way to achieve it without writing a macro or I need a macro.
Thanks for suggestion.

Here's how the content looks like

page 1
some content here. content here. some content here. content here
some content here. content here
some content here. content here
some content here. content here
some content here. content here
some content here. content here

1

page 2
some content here. content here. some content here. content here
some content here. content here
some content here. content here
some content here. content here
some content here. content here
some content here. content here

2

--
davidku



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace Character Karen Microsoft Word Help 2 May 13th 09 06:23 PM
Find and replace a character [email protected] Microsoft Word Help 1 September 27th 07 11:39 AM
Find/Replace specific character michaelberrier Microsoft Word Help 3 January 24th 07 07:26 AM
Using find and replace with special character symbols wpfan Microsoft Word Help 1 October 4th 06 06:06 PM
vba: find replace normal to bold Benjamin Adnam Microsoft Word Help 1 August 26th 05 02:50 PM


All times are GMT +1. The time now is 06:50 PM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"