Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 07:26 AM.


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