Intermediate
60 mins
Teacher/Student led
+65 XP
Pupils work on their own device

Mail Merge Part 1: Data Source and Template

Learn the basics of mail merge by creating a data source spreadsheet with recipient details and a template letter that includes merge fields. This prepares you to send personalised letters efficiently for your project.

Teacher Class Feed

Load previous activity

    1 - Introduction ~5 mins

    Today you will

    • make a spreadsheet list of people to write to
    • make a letter with gaps for each person's details
    • do both for your Something Real project

    Illustration for IntroductionMail merge joins one letter and one list to make a personal copy for each person.

    Warm-up

    Think of five people you could write to about your project. What is one detail that is different for each of them?

    2 - Key Concepts ~5 mins

    Key words

    • Mail merge joins one letter and one list to make a copy for each person.
    • A data source is a spreadsheet with one person on each row.
    • A merge field is a gap like «FirstName». Its name must match a column heading exactly.
    • A template letter is the main letter, with the same words for everyone.

    Example

    Aoife sells stickers. Her letter starts like this:

    Dear «FirstName», I would like to offer «Organisation» a sample of our «Offer».

    On Ciara's copy, «FirstName» becomes Ciara.

    3 - Step-by-step: Data Source ~8 mins

    You will build Aoife's data source, which is a spreadsheet with four headings and five people. Follow the steps in the box below with your teacher.

    Save it in {{code:sm1/}} as {{code:sm1_doc4_mailmerge_source_EXAMPLE}}.

    FirstNameLastNameOrganisationOffer
    CiaraByrneGallery Lanelaptop stickers
    SeanMurphyThe Craft Cornerwater-bottle stickers
    NiamhO'NeillCampus Hub Shopphone stickers
    TomWalshIndie Market Stall 12sticker packs
    AislingKellyOnline (Instagram lead)custom name stickers
    Tip

    If you are behind, type the headings and two people now. Add the rest before the practice task.

    4 - Step-by-step: Template Letter ~8 mins

    Now you will build Aoife's template letter, with gaps for FirstName, Organisation and Offer. Follow the steps in the box below.

    Save it in {{code:sm1/}} as {{code:sm1_doc4_mailmerge_letter_EXAMPLE}}. You will not run the merge today.

    Markers: « »

    [Your name]
    [Today's date]

    Dear «FirstName»,

    I am writing to «Organisation» because I would like to offer a sample of our «Offer» for your customers. I run a small custom-sticker project and I am looking for local partners for a short trial.

    If this is of interest, I would be glad to drop in a sample pack this month.

    Kind regards,
    [Your name]

    Tip

    Copy the « » marks from the box. It is easier than finding them on the keyboard.

    5 - Common Issues ~4 mins

    Common issues

    • I can't type « ». Copy them from the letter box and paste them in.
    • A field doesn't match. Read the heading letter by letter, because FirstName is not the same as First Name.
    • I left a blank row. Delete it, so each person has their own row.
    • A file is in the wrong place. Move it into {{code:sm1/}}.
    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more