View Single Post
  #11   Report Post  
Posted to microsoft.public.word.docmanagement
Herb Tyson [MVP] Herb Tyson [MVP] is offline
external usenet poster
 
Posts: 2,936
Default Finding all paragraphs with quotes

Hi, Jezzica85,

Looks like you might not need a macro after all. :-)

It took some experimenting to find a pattern that does what you want, but,
with Use Wildcards enabled, the following search pattern appears to select
the next paragraph that contains an opening smart quote:

[!^13]@^0147*^13


What this does... [!^13] means "anything that isn't a paragraph mark". !
means "not".

@ means "any number of the preceding character".

* means any string of characters.

So... this searches for any number of non-paragraph characters, followed by
an opening smart quote, followed by a string of any length, followed by a
paragraph mark.

So... this should match the first characters of the paragraph, up to the
smart quote, and from there to the end of the paragraph.

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


"jezzica85" wrote in message
news
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