Mail merge field code for Excel to Word
Solved
galerer
Posted messages
10
Status
Member
-
ced -
ced -
Hello,
I’m encountering a problem that I absolutely can’t solve despite my online searches.
I’m doing a mail merge from Excel to Word (v2007).
I have a merge field named Temps_de_trajet_ and my cell is in hh:mm format in Excel, and during the mail merge I’d like to preserve that format.
I’ve tried modifying the field code but nothing works; it never changes the format of my field. If I choose Date it shows the current date. I’ve been going in circles for quite a while, which is why I’m asking for help.
Example: a cell in Excel written 07:00 becomes 0.29166666667.
I also have another problem with cells that are in standard formats in Excel (my cells are text) becoming a "0" at the end of the mail merge; I don’t understand why.
Thanks for your help.
Configuration: Windows XP / Safari 534.30
I’m encountering a problem that I absolutely can’t solve despite my online searches.
I’m doing a mail merge from Excel to Word (v2007).
I have a merge field named Temps_de_trajet_ and my cell is in hh:mm format in Excel, and during the mail merge I’d like to preserve that format.
I’ve tried modifying the field code but nothing works; it never changes the format of my field. If I choose Date it shows the current date. I’ve been going in circles for quite a while, which is why I’m asking for help.
Example: a cell in Excel written 07:00 becomes 0.29166666667.
I also have another problem with cells that are in standard formats in Excel (my cells are text) becoming a "0" at the end of the mail merge; I don’t understand why.
Thanks for your help.
Configuration: Windows XP / Safari 534.30
5 answers
-
Hello,
Redo the merge with the DDE protocol.
To do this, go to Advanced Options / General section / check "confirm file conversion on opening".
- Switch your main merge document back to a normal document (Start mail merge / Normal Word document)
- then merge the Word file again with the Excel base.
With this option checked, a new dialog box appears and you can choose the DDE protocol.
Your numbers should be in the correct format.
Argitxu -
Thank you for this response. But my problem persists. I can't get the DDE protocol option in the dialog box, only "OLE DB Database Files" is displayed as my only option for my Excel file, which is a macro-enabled file, I don't know if that matters.
I tried the trick by saving my file in a format that Excel does not support macros, but that still doesn't work.
I have indeed done research on the DDE protocol and it seems to be the right technique. -
I managed to find the DDE protocol but the mail merge fields are no longer valid and I’m only being offered AutoField 1, 2, 3, ...
My data therefore won’t merge. -
Re
I was in the middle of telling you that you needed to check under Excel / Advanced Options / General at the bottom / the option "Ignore other applications that use Dynamic Data Exchange (DDE)". It should be unchecked. If it was enabled, restart the merge from the beginning, which should bring up the DDE protocol.
Now, start from zero again to redo the merge from the start by reinserting the fields.
--
Argitxu -
Thank you again for all that information.
My problem is now solved, I didn't believe it anymore!