Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2021, 10:12 AM
mhs mhs is offline FindAndReplace isn't finding text in header Windows 10 FindAndReplace isn't finding text in header Office 2019
Novice
FindAndReplace isn't finding text in header
 
Join Date: May 2021
Posts: 1
mhs is on a distinguished road
Question FindAndReplace isn't finding text in header


I'm trying to create a macro to FindAndReplace text that shows up twice in my document: once in the MainDocument AND once in the HeadersAndFooters (specifically, the second-and-subsequent-page header), but I can't get Word to perform the FindAndReplace in both places.

When my document is open in PrintView, and I perform this FindAndReplace action manually, Word correctly performs the FindAndReplace in both places. But when I record the keystrokes into a macro and then run the macro, Word performs the FindAndReplace ONLY in the MainDocument, NOT in the HeadersAndFooters.

I read a post on Google that said you can choose to tell Word where to look by clicking the FindIn button on the Find tab in the FindAndReplace dialog box, and choosing either MainDocument or HeadersAndFooters.

So I tried recording a macro to perform this FindAndReplace action twice, first choosing HeadersAndFooters and second choosing MainDocument. But ALAS, when I run this new macro, it, too, performs the FindAndReplace ONLY in the MainDocument, NOT in the HeadersAndFooters.

HELP! ANY IDEAS?
Reply With Quote
  #2  
Old 05-02-2021, 04:51 PM
LQuinn LQuinn is offline FindAndReplace isn't finding text in header Windows 10 FindAndReplace isn't finding text in header Office 2019
Novice
 
Join Date: Jan 2021
Location: Western Australia
Posts: 20
LQuinn is on a distinguished road
Default

take a look here and see how you go
Reply With Quote
  #3  
Old 05-03-2021, 06:54 AM
macropod's Avatar
macropod macropod is offline FindAndReplace isn't finding text in header Windows 10 FindAndReplace isn't finding text in header Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See: https://www.msofficeforums.com/word-...er-footer.html
And, to do the same across multiple documents: https://www.msofficeforums.com/word-...er-footer.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
FindAndReplace isn't finding text in header Finding Symbols And Deleting Text Before And After It llcriticll Word VBA 3 11-21-2017 05:11 AM
finding 'struck-through' text joebloggs Word 1 08-16-2017 10:27 PM
FindAndReplace isn't finding text in header Finding the nth Blank Value in a Row of Text ljg713 Excel 7 01-12-2016 07:49 AM
finding data from different tables based on header s7y Excel 3 11-11-2013 09:09 AM
Finding a text style in a cell jimbassett Excel 1 02-10-2010 08:39 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft