mail merge times from excel into word

J

Jane

I formatted the cells in Excel with h:mm BUT when I mail merge into Word it
comes out as h:mm:ss AM. I don't want the seconds or the AM or PM. Can
anyone tell me where I've gone wrong. It's driving me mad so any feedback
will be great
 
M

macropod

Hi Jane,

To get the time format you want, you can add a formatting picture switch. In Word:
.. select the mergefield;
.. press Shift-F9 to expose the field coding. It should look something like {MERGEFIELD MyTime} where 'MyTime' is your mergefield's
name;
.. delete anything appearing after the mergefield's name and add '\@ "h:m"', as in {MERGEFIELD MyTime \@ "h:m am/pm"}.Note: you must
use lowercase 'm's for minutes;
.. if you want the hours and/r minutes to display leading 0s, change 'h' to 'hh for hours and 'm' to 'mm' for minutes;
.. position the cursor anywhere in this field and press F9 to update it;
.. run your mailmerge.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top