Thread: [Solved] Multi-File Header Change
View Single Post
 
Old 02-09-2018, 10:09 AM
cspande cspande is offline Windows 10 Office 2013
Novice
 
Join Date: Feb 2018
Posts: 4
cspande is on a distinguished road
Default Multi-File Header Change

I have zero experience in Word VBA. I am looking for a way to change the header in one document and update multiple documents in a specified folder.

We have specification documents that need to have their headers updated quite regularly. I'd like to be able to use a Word document as the template where any changes that need to take place will occur in the document. I would then like to use that document to change multiple documents automatically. These other documents would be located in a folder. Ideally, the process flow would be like this:

Open "template.docx"
Open Header/add date "March 1, 2018"
Close Header
Save document
Run macro - select folder location of all documents that need the header changed.

Currently we copy/paste the updated header into each document separately which involves opening document/open header/paste/close header/save/close document repeat 100+ times. This process takes place for one project, extrapolate to the 100s of projects my company produces...you get the picture.

I've stumbled upon this thread and code but have not been able to understand it:
https://www.msofficeforums.com/word-...html#post62942

It appears as if this code should work but I must be missing something as to I don't understand how to make it grab the folder location and institute the changes made to my template document.

Version: Word 2013

Thank you for your time,

Last edited by cspande; 02-09-2018 at 10:13 AM. Reason: Removed name
Reply With Quote