View Single Post
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Finding all paragraphs with quotes

Plan B - If you want to page through the document, by re-clicking the
toolbar button, you will need an extra line placed as shown below

strFind = "^0147"
Selection.EndKey Unit:=wdLine 'add this line
With Selection.Find

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


jezzica85 wrote:
Oh no, macros... *shudder*

Basically, all I want is to select the paragraph so I can copy it.
I'm using these paragraphs as input for a program. They don't need to
be changed in any way; I just need them as is.

Thanks,
Jezzica85

"Graham Mayor" wrote:

We are now in macro territory. What do you want to do with the
paragraph when you have found it?

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


jezzica85 wrote:
Thanks Herb,
So far that comes the closest to what I'm looking for (thank you to
Dean also!), but it doesn't select the entire paragraph if the
entire paragraph isn't surrounded by quotes. It selects the first
quote all the way to the end of the paragraph right now, but
doesn't select the rest of the paragraph if the paragraph doesn't
start with a quote.

To be clear, if a paragraph is like:
"blah" text "blah"
or
"blah" text

it selects the whole paragraph fine, but if the paragraph is like:

text "blah"
or
text "blah" text

it misses the beginning of those last two cases.

Thanks for your help so far,
Jezzica85

I tried putting a tab character with a star before what you put
down, but that selects everything.

"Graham Mayor" wrote:

Search for
^0147*^13
with the wildcard option set.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


jezzica85 wrote:
Thanks for the reply Herb, but I'm not just looking for the quotes
per se. I guess I wasn't clear, sorry about that. What I'd like to
do is be able to select every paragraph that contains an opening
curly quote, not just the quotes themselves.

Thanks,
Jezzica85

"Herb Tyson [MVP]" wrote:

Try ^0147. Does that work for you?


--
Herb Tyson MS MVP
Author of the Word 2007 Bible
Blog: http://word2007bible.herbtyson.com
Web: http://www.herbtyson.com


"jezzica85" wrote in
message
...
Hi everybody,
I've been fighting with Find and Replace for a while now, and I
can't figure
this out--can anyone please tell me how to find every paragraph
that has an
opening quotation mark anywhere in it? It doesn't show up here
unfortunately,
but I'm looking for the curly opening quotes--they're ascii code
0147, if that helps.

Thank you!
Jezzica85