#1
|
|||
|
|||
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? |
#3
|
||||
|
||||
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] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
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 |