View Single Post
 
Old 05-31-2016, 02:10 PM
mbreggs mbreggs is offline Windows 10 Office 2010 64bit
Novice
 
Join Date: May 2016
Posts: 3
mbreggs is on a distinguished road
Default New to VBA - Find/Replace in MS Word 2010 that Searches Header/Footer

Hi there,

I am relatively new to VBA and am recording a number of macros to automate my work. I have come across this problem: when I do a Find & Replace WITHOUT recording my Macro, the Find & Replace searches through the body, the headers, and the footers.

However, when I try to record the Macro, the Find & Replace tool does not search through the footer or header, just the body.

I am looking to update a template - using the same MS Word doc for a number of projects going forward and would be greatly appreciative if there is a work around to this problem.

If there is code for this problem, please pass it along!
If you could also be so kind to explain to me where the "Find" criteria will go in the code as well as the "Replace" criteria, I would greatly greatly appreciate it!

Thank you for your time in advance.
Reply With Quote