Display time in correct format in a mail merge

M

mleisure

I'm creating a mail merge using an Excel worksheet as the source file and the
letter is in Word. One of the items in the worksheet is a date field
formatted as HH:MM AM(PM). When the data is merged, it displays as HH:MM:SS
AM(PM). How can I get the merge to display in HH:MM AM(PM) format?
 
P

Peter Jamieson

In your Word document, try Alt-F9 to reveal the field codes and modify, e.g.

{ MERGEFIELD mydatefield }

to look like

{ MERGEFIELD mydatefield \@"hh:mm am/pm" }

(If there are other "switches" such as \*Mergeformat, leave them)

Peter Jamieson
 
M

MKLeisure

Thank you!

Peter Jamieson said:
In your Word document, try Alt-F9 to reveal the field codes and modify, e.g.

{ MERGEFIELD mydatefield }

to look like

{ MERGEFIELD mydatefield \@"hh:mm am/pm" }

(If there are other "switches" such as \*Mergeformat, leave them)

Peter Jamieson
 

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