Excel Mail Merge: Retaining Leading Zeros When Merging from Excel to Word

Retaining Leading Zeros When Mail Merging from Excel to Word

Problem:

I had created an Excel spreadsheet that was being used as a data source for a Microsoft Word mail merge but the Excel document had a field that used field formatting to add leading zeros to the numbers but the numbers were not being imported in to the mail merge document with the leading zeros.

Today’s Challenge?

Retaining leading zeros on a numeric field when using Microsoft Word Mail Merge with an Excel source document.

Steps to Add Leading Zeros to Zip Code in MS Word Mail Merge

In Microsoft Word…

  1. Right click over the Mail Merge Field
  2. Select “Toggle Field Codes”
  3. Change the mail merge field code to read, { Mergefield ZipCode \# “00000” }
  4. Change “ZipCode” to whatever numeric field you are trying to import / merge.

Author: Rick Cable / AKA Cyber Abyss

A 16 year US Navy Veteran with 25+ years experience in various IT Roles in the US Navy, Startups and Healthcare. Founder of FinditClassifieds.com in 1997 to present and co-founder of Sports Card Collector Software startup, LK2 Software 1999-2002. For last 7 years working as a full-stack developer supporting multiple agile teams and products in a large healthcare organization. Part-time Cyber Researcher, Aspiring Hacker, Lock Picker and OSINT enthusiast.

Leave a Reply