Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Macro

Status
Not open for further replies.

quarinteen

Technical User
Dec 27, 2004
9
US
Hey does anyone know how to make a macro for word 2003 that will take 735 lines and stick qoutes around all of them

Example:
sam
dog
rooster
new york

into

"sam"
"dog"
"rooster"
"New York"

if you can help please I would appreciate it.
thank you
 
Do it with a replace (Ctrl + h).
Search for the para mark (^p)
and replace it with "^p
 
That is not a macro. It is a individual, manual, process. It works, but if you needed to do it a number of times, you would in fact need a macro.

quarinteen, what are you trying to do? "Lines" in a Word document is not really a meaningful term. In fact, BenRowe's post is making an assumption that you mean paragraph, rather than "line". Is each "line" a paragraph?

Gerry
 
I have to write a program for class that uses input files for citys and one for zips that puts them in an array and compares them against each other. The the citys file the cities in it have to be in quotes or they wont display and i will get errors. Thanks for helping

"New York"
"Las Vegas"

So on and so forth
 
OK. Turn on ShowAll (Ctrl+*) and tell us if there is a paragraph mark (pilcro) or a line break (bent arrow) after each of the city names.

Regards: tf1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top