Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find and Replace in Footers 2

Status
Not open for further replies.

noHandlebars

Technical User
Jun 25, 2008
46
US
In Word, I'm trying to do a replace all in a document for information that is in the footer. However, the replace all does not find the words I'm looking for or it only finds the first occurence. Is there a special way to perform a replace all when footers are involved?
 
It works fine for me. Just to make sure, you are pressing "Replace All", right?

What version of Word are you using? If you open a new document and put "test" in the footer several times along with some other text, then try to find and replace, does that work?

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
It's word 2003. It doesn't work, it involves many pages with footers. I'm not sure what's not working.
 
Also, as you are also posting this question in the VBA forum, can you confirm that you are indeed trying to do this via code?

If so, perhaps stick to the thread in the VBA forum.

faq219-2884

Gerry
My paintings and sculpture
 
Right now I'm just trying to use the replace all function in word but I am still having difficulties. I was just curious if there was a special option you needed to use since the words I'm looking for are located in footers.
 
Word will look in headers, footers and the body. That is the default behavior.

Do you have different footers on different pages?

[aside]
Gerry: we are in the Office Forum.
[/aside]

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
[another aside]
Nevermind, I just saw thread707-1487208 in the VBA forum
[/another aside]


[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
The footers are slightly different on each page. The first page is different, and then all subsequent pages have page numbers that are changing.
 





That's a whole nuther aside of John! ;-)

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I'm not really a Word guy, but I was thinking that if you had the document broken up into different sections that might might throw off Replace. But I started messing around with it and I don't that that would cause any problems.


Skip: [tongue]

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
This works for me, too, but, the message about the number of occurrences it changed is misleading. I had the same text in 24 pages of footers. It replaced the text in all of the footers but said it replaced only one.
 




"It replaced the text in all of the footers but said it replaced only one"

How many SECTIONS in your document? If only ONE SECTION, then there was ONLY ONE change made.


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
That is correct.

If you have one Section, and you do not have DifferentFirstPage, or DifferentOddEven, then there is only one footer to change. Primary. It makes no difference if there are 24 pages, or 2400 pages. The pages are NOT changed. The text in the footer is changed, and there would only be one change.

noHandlebars: "I was just curious if there was a special option you needed to use since the words I'm looking for are located in footers. "

No. Find ReplaceAll done through the dialog will action in footers.

noHandlebars: "The footers are slightly different on each page. The first page is different, and then all subsequent pages have page numbers that are changing. "

Careful here. You asked about a Find/Replace regarding text. What does page numbers have to do with this? Page numbers should be changing, yes?

Please answer the question regarding possible textboxes. If the text to be replaced is in textboxes, this moves it into a more difficult realm. Find/ReplaceAll will replace text in textboxes in the document, but NOT in the footers.

faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top