Steps to Mail Merge in LibreOffice Writer
Steps to Mail Merge in LibreOffice Writer
Open a new document with File > New > Text Document and choose Tools > Mail
Merge Wizard on the Menu bar.
If you have not already created the address list, you may click Create to do so
now. This step will allow you to create a .csv (Comma Separated Values) file
with a new list of address records. If you have an address list that is not
registered in LibreOffice, but which you wish to use, click Add and select the
file from the location in which it is saved.
In each of these cases a new data source (.odb file) will be created and
registered.
2) Select the address list and click OK to return to the Insert Address Block
dialog. We retain Addresses as our address book for this example. The wizard
can also exclude certain records; click Filter to choose them.
4) Notice the option for Suppress lines with empty fields. Using the Wizard,
you do not have to create your own conditional suppression fields, as you do
when using the manual form letter method described earlier in this chapter..
Step 4: Create salutation
It is possible to create just about any salutation you want in this step
You can, for example, use a different greeting for men and women. To do this, Writer
must have some way of knowing whether a person is male or female. In a
spreadsheet, you might have a column called Gender. In the section Address list field
indicating a female recipient, set the Field name to Gender and the Field value to F.
The Male salutation is then printed for all men and the Female salutation for all
women. Unfortunately, LibreOffice does not provide for other genders; however, you
can use a non-gendered salutation.
If you do not have such a column in your spreadsheet, or if you do not need to
distinguish between genders in the salutation, then you can leave the Field
name and Field value boxes empty and use the customized content of the Male list
box for the salutation to all recipients.
Create a salutation
As an example:
1) Click the New button alongside the Male list box. The Custom Salutation
(Male Recipients) dialog opens.
2) Select Salutation in the Salutation elements list on the right and drag it into
box 1 on the right.
3) In the Customize salutation box, select an appropriate greeting or type your
own text into the box. Edit it as needed.
4) Select and move First Name from the Salutation elements list into box 1,
using either the Add to salutation arrow button or by dragging it. Then click
the Move right arrow button on the right-hand side to add space between the
salutation and the first name.
5) Select and move Last Name from the Salutation elements list into box 1,
then click the Move right arrow button to add space between the first and the
last names.
6) Finally, move Punctuation Mark across and select the comma from the
choices in the Customize salutation box.
7) The construct is shown in the Preview box.
8) Carry out any final editing. Click OK.
This method allows you to use gender neutral titles such as Doctor (Dr) and
Reverend (Rev), or titles such as Ms, or omit titles.
Adjust layout
You now have a Writer document into which you can type the contents of the letter.
To merge the fields and print the letters, choose File > Print on the Menu bar. A
message pops up, asking if you want to print a form letter. Click Yes.
The Mail Merge dialog is now displayed, where you can optionally select records to
include or exclude (in the top section) and, in the Output section, choose to print the
letters immediately (Printer) or save them (File) for further editing or printing at a
later time.
If you choose File, you can then choose whether to save the output as a single
document (containing all of the letters) or save the letters as individual documents,
and you can specify the name, location, and format of the files. Click OK to save the
letters. You can now open the letters and edit them individually as you would edit
any other document.