Formatting data in word label merging, commas into line breaks

F

funky Hamsta

When making labels for posting letters, I have a data field in my excel table
which has the address data in the following format:

" Mr A B Bloggs, 12 Nowhere Raod, Somewhere, Shireshire, SN12 4UP. "

How can I point word mail merge at this data field and get it to insert a
line break where it sees a comma? so that there format becomes:

Mr A B Bloggs
12 Nowhere Road
Somewhere
Shireshire
SN12 4UP

Any suggestions/solutions greatly appreciated.
 
D

Doug Robbins - Word MVP

You cannot do it as part of the mailmerge process.

You should use Edit > Replace on the data source to replace all of the
commas with ^p (paragraph returns)

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
M

macropod

Hi,

Word's fields don't support this kind of data manipulation. Your best option
might be to edit the Excel data, by replacing the commas and their trailing
spaces with line feeds. In excel you'd do this via Find/Replace where the
'find' string is a commas and trailing space, and the 'replace string is
ASCII 10 - which you can enter as Alt-010.

Cheers
 

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