Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Conditionally Adding a Period in a Mail Merge.

Conditionally Adding a Period in a Mail Merge

Written by Allen Wyatt (last updated October 12, 2020)
This tip applies to Word 97, 2000, 2002, and 2003


Rose uses Word's mail-merge feature to create certificates. The source data is in an Access database, and sometimes the middle initial pulled from the database has a period after the initial and sometimes it doesn't. Rose is wondering if there is a way, in Word, to have the mail merge check for the trailing period on the data in the middle initial field and automatically add one if necessary.

Unfortunately, we couldn't come up with a way to do this. Word doesn't seem to have the capability to check for characters within the merged data on the fly. We did come up with a workaround, however. Open your merge document and, right after the merge field that inserts the middle initial, type a period. When you do your merge, some middle initials will have one period (if they had none in the data source) and others will have two (if they had one in the data source). All you then need to do is a Find and Replace operation, replacing all instances of two periods with a single period.

This may not be as "clean" as you desire; after all, it adds an extra step to your certificate preparation. It is easier, however, than manually going through the merged file and looking at each middle initial yourself.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (307) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Conditionally Adding a Period in a Mail Merge.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Disabling the F1 Key

Tired of hitting the F1 key by mistake and pulling up the Help system? Here's a couple of ways (one drastic and one not ...

Discover More

Inserting the Date Your Document was Last Saved

Word keeps track of the date each time you save your document. If you want to insert that "save date" in your document, ...

Discover More

Special Symbols Display Incorrectly

When sharing your documents with others, you may occasionally have a problem where some of the symbols used in your ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (menu)

Speeding Up Mail Merges

The Mail Merge tool in Word is a great way to create new, customized documents. If you are doing a lot of merging, you ...

Discover More

Getting Rid of Mail Merge Section Breaks

When you create a group of documents from a merge file, Word normally inserts section breaks between iterations of the ...

Discover More

Automatically Determining a Due Date

When you are doing a mail merge in Word, you may need to calculate a date sometime in the future. Word doesn't include an ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 8 - 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.