
Signature
Greg Maxey/Word MVP
A Peer in Peer to Peer Support
Greg Maxey was telling us:
Greg Maxey nous racontait que :
> I am sure Doug would get back to you shortly, but if you don't want
> to wait you can delete everything in your existing macro except the
[quoted text clipped - 11 lines]
> BTW, I'm a novice at VBA myself, so if someone else comes along and
> tweaks my explanation a bit then we both migth learn something :-)
I just want to add that Doug's code will iterate the paragraphs collection
in the document. You asked about iterating through each line.
That is not the same thing as a paragraph can span many lines.
Of course, it can be that your document consists of nothing but one-line
paragraphs, in which case Doug's macro, along with Greg's explanations, will
be the ticket.
On the other hand, if you really wanted to wrap each line in quotes, even
the lines within a multi-line paragraph, that can be very hairy, especially
for a beginner.
(For a clue as why it can be hairy, just think about the fact that adding
quotes to a line adds characters to this line, which in turn can cause the
wrapping to change, with words being moved to the next line as soon as you
add one single quote character. Even if your document consists of one-line
paragraphs, it may well be that some of them happen to fit exactly within
the margins, and as soon as you add the first quote, the last word on the
line will be wrapped to the next line, thus adding a line...)
Meanwhile, have a look at:
http://word.mvps.org/faqs/macrosvba/CreateAMacro.htm
for an article titled:
"What do I do with macros sent to me by other newsgroup readers to help me
out?"

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Rodney Dangerfield - 18 Nov 2004 22:45 GMT
Thanks , guys (Doug, Greg, Jean) . . . I'm amazed I can get such "expert"
advice in these groups! Your solutions were terrific . . . and I definitely
learned some things.
Very good.
Bye
Jim
> Greg Maxey was telling us:
> Greg Maxey nous racontait que :
[quoted text clipped - 38 lines]
> "What do I do with macros sent to me by other newsgroup readers to help me
> out?"