how do i add a comma after each line on a long list of words?

K

Kartik

example:

word1
word2
word3

should become

word1,
word2,
word3,

i have a very long list hence doing it individually will take too much time.
please help
 
J

Jay Freedman

example:

word1
word2
word3

should become

word1,
word2,
word3,

i have a very long list hence doing it individually will take too much time.
please help

Assuming each word is followed by a paragraph break (when you turn on
nonprinting symbols you see a backwards-P sign, as shown in
http://www.word.mvps.org/FAQs/Formatting/NonPrintChars.htm):

Open the Replace dialog. In the Find What box, type

^p

In the Replace With box, enter

,^&

Press the Replace All button.
 
D

Doug Robbins - Word MVP

Use Edit>Replace.

If each line ends with a carriage return, then replace ^p with ,^p

If it ends with a new line "character" then replace ^l with ,^l (or ,^p)

To see what each line ends with, click on the Show/Hide button ¶

--
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
 

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