Automate salutation
colnago4
Posted messages
20
Registration date
Status
Member
Last intervention
-
m@rina Posted messages 27610 Registration date Status Moderator Last intervention -
m@rina Posted messages 27610 Registration date Status Moderator Last intervention -
Hello,
I need to create a template document to edit nominative decrees using mail merge.
In my Excel table, I fill in the columns that will be used to populate my template document.
However, I can't automate the variables "Monsieur; Madame; Mademoiselle" described below.
For example, in the fields corresponding to the civility, I would like it so that when I select Monsieur, it outputs First Name LAST_NAME born
Madame = First Name USAGE_NAME born LAST_NAME
Monsieur = First Name LAST_NAME born
Mademoiselle = First Name LAST_NAME born.
Thank you for your help
Kind regards.
I need to create a template document to edit nominative decrees using mail merge.
In my Excel table, I fill in the columns that will be used to populate my template document.
However, I can't automate the variables "Monsieur; Madame; Mademoiselle" described below.
For example, in the fields corresponding to the civility, I would like it so that when I select Monsieur, it outputs First Name LAST_NAME born
Madame = First Name USAGE_NAME born LAST_NAME
Monsieur = First Name LAST_NAME born
Mademoiselle = First Name LAST_NAME born.
Thank you for your help
Kind regards.
4 answers
-
Hello,
So to begin with, we no longer use "Mademoiselle" for official documents! It's frustrating, why do we always have to indicate if the lady is married and not the gentleman???
Otherwise, and generally speaking, all of this can be done with IF THEN ELSE fields:
{IF {MERGEFIELD Civility} = "Monsieur" "né" "née"}
This means: if the Civility field equals "Monsieur", we will have "né" and in all other cases we will have "née".
Concerning the surname, it’s better to condition it based on whether it's filled or not, as a lady (even married) may keep her maiden name...
I remind you that ALL { } fields are inserted using Ctrl+F9. You can also use the Rules button under the Mailings tab and choose IF THEN ELSE.
m@rina
--
Do not ask me your questions in private. I do not answer them. -
Hello.
I strongly advise you against ending your greetings
with "né" for gentlemen,
and "née" for young ladies.
Your problem will be that much easier to solve ...
--
Retirement is great! Especially in the Antilles...
Raymond (INSA, AFPA) -
Hello,
I have to take into account the variable born or born.
Regarding the variables
if Madam = First Name LAST_NAME born LAST_NAME_PATRONYMIC
if Sir = First Name LAST_NAME_PATRONYMIC born
if Madam (unmarried) = First Name LAST_NAME_PATRONYMIC born.
Where I am stuck is in the formula to enter.
{IF {MERGEFIELD Madam} = First Name LAST_NAME born LAST_NAME_PATRONYMIC} {IF {MERGEFIELD Madam LAST_NAME = "" } = LAST_NAME_PATRONYMIC born} IF {MERGEFIELD Sir} = LAST_NAME_PATRONYMIC born}.
But it doesn't work; my formula must not be correct
Best regards
--
Best regards -
In m@rina's message
she talks about the rules button under the Mailings tab and chooses IF THEN ELSE, unless I'm mistaken, this option only works for two variables whereas in my case there are three.
Mrs., Mr., and Mrs. not married.
--
Sincerely-
There may be three cases, but only two genders (until proven otherwise!).
So if Mr. => born, for the others it's born as female.
Note that several conditions can follow one another.
For the use name, it's either empty or not empty... so just one condition as well. For this type of condition, we can simplify with a switch. I explain it here:
https://www.faqword.com/index.php/word/publipostage/981
-