Change the headers and footers in multiple Microsoft Word documents at once

BatchDocProcessor replaces the headers and footers of every Microsoft Word document in a folder in one run, on your Windows PC. You put the new letterhead in a template once. Each section of each document gets the version that matches its orientation, and the report shows what happened to every file.

Updated

Before. The old letterhead on every page.
EXAMPLE & RIVERA, INC.
Example & Rivera, Inc. · 200 Example Avenue
EXAMPLE & RIVERA, INC.
Example & Rivera, Inc. · 200 Example Avenue
After. The landscape page gets the wide version.
Example Rivera LLC
Example Rivera LLC · 200 Example Avenue
Example Rivera LLC200 Example Avenue
Example Rivera LLC · 200 Example Avenue
The landscape page gets the landscape version of the letterhead.
The usual options

In Microsoft Word, with a macro, or in one run.

A rebrand, an office move or a new legal name puts a new letterhead in front of hundreds of letters, proposals and forms.

In Microsoft Word

  • Open each document, open its header, paste the new letterhead, then do the same in the footer.
  • Every section can have its own header, and a different first page or odd and even pages add more. Landscape sections are easy to miss.
  • No record of which documents are done, unless someone keeps a list.

A macro

  • Someone has to write a loop over the folder, test it and keep it working.
  • It has to visit every section, and in each one the normal, first-page and even-page header and footer, and know which pages are landscape.
  • Putting back a document it breaks, and a log of what it changed, are extra work.

BatchDocProcessor

  • Choose the templates once, and save the job as a preset for the next folder.
  • Replaces each section's headers and footers from the template that matches its orientation, logos and links included.
  • Edits copies by default. A document that fails is restored, and the report has a line for every file.
How it works

How do I change the letterhead in every document of a folder?

  1. 1

    Set up the template

    Make one document with the new letterhead in its header and its footer. That is your template; only its first section is read. If some documents have landscape pages, make a second template with the wide version.

  2. 2

    Choose the folders

    Point the app at the folder with your documents, and at an empty output folder for the edited copies. Tick Include subfolders if the documents are spread over several.

  3. 3

    Turn on Headers and footers

    Choose Replace from template for headers, footers or both, then set the portrait template and, if you have one, the landscape template.

  4. 4

    Add the rest of the rebrand

    In the same job, Replace images swaps the old logo in the body and charts, and Find and replace text changes the old company name, in charts and their data too. The rebrand guide shows the whole job.

  5. 5

    Check, then run

    Anything that would stop the run, such as a missing template, is listed before it starts. A confirmation then shows the files and the steps.

  6. 6

    Read the report

    Every document gets a line. A section that found no template of its orientation is listed as a warning, so you know which documents to open.

Sections and pages

Which header each page gets

A Microsoft Word document is made of sections, and each section has its own headers and footers. The run replaces them section by section.

Portrait sections
Get the header and footer of the portrait template.
Landscape sections
Get those of the landscape template, so a wide pricing table gets the wide letterhead. Without a landscape template they keep their old header and the report warns you, unless you tick "Empty sections that have no matching template".
First pages
Each document keeps its own Different First Page setting. Where it's on, the first page gets the template's first-page header, or its normal header if the template has none. If the template's first-page header is empty, first pages end up with no header: turn the option on in the template and fill that header in.
Odd and even pages
The same holds for Different Odd and Even Pages and the template's even-page header.
Logos and links
A logo, picture or link in the template's header is copied into every document with it.
Values that differ
Text typed into the old header, such as a project number, goes with it. For a value that differs per document, put a field in the template and turn on Update fields.
No replacement
To take headers or footers off without putting anything in their place, choose Remove. It needs no template.

Good to know

  • Headers are replaced whole. Nothing from the old header is merged into the new one.
  • Microsoft Word isn't needed for this step: the files are edited directly. Of the steps above, only Update fields needs it.
  • Test the job on three or four typical documents first, including one with a landscape page and one with a different first page.
Questions

Questions about headers and footers

My documents have landscape pages. Will they get the right letterhead?

Yes, if you set a landscape template as well as a portrait one. A section with no template of its orientation keeps its old header, and the report gives a warning.

Landscape pages kept their old header.

No landscape template was set. Set one, or tick "Empty sections that have no matching template" in Headers and footers. Then run the job again on your originals.

Landscape pages

Some pages have no header after the run.

If only first pages or even pages are affected, the template's first-page or even-page header is empty. Turn the same option on in the template and fill in that header. If every page is affected, the template has no normal header.

Can each document get different values?

Yes, with Values from a spreadsheet. You provide an Excel workbook (.xlsx or .xlsm) or CSV file with one row per document. A file-name column matches each row to its file, and every other column writes a standard property (such as Title, Subject, Author or Company) or a custom property or variable.

Combined with Update property fields, those values show up in headers, footers and text without starting Microsoft Word. For values that stay identical across all documents, use Set document properties instead.

Values from a spreadsheet

Can the first page keep a different header?

Yes. A document with Different First Page turned on keeps it, and its first page gets the template's first-page header. Fill that header in the template, with the same option turned on there.

Can I remove headers and footers instead of replacing them?

Yes. Choose Remove for headers, footers or both. Every section is cleared, and no template is needed.

More jobs

Try it on ten of your own documents.

Your originals stay unchanged by default, and the report shows what happened to each file.

Download the free trial
  • Every feature, for 7 days or 50 documents, whichever comes first.
  • No license key, account or card needed. Needs an internet connection.
  • When it ends, the editing steps lock. Nothing is charged or renewed.
  • Processed on your PC. Your documents aren’t uploaded.
See pricing