View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
froggfeathers froggfeathers is offline
external usenet poster
 
Posts: 3
Default Limiting find to two words



"JoAnn Paules" wrote:

Do you mean something like "dog walking:? If so, try looking for dog *ing.


I am looking for was *ing. The problem is that it won't just pickup two
words. It will pick up a whole paragraph from the time it sees the word was
until (three sentences later) it finds an *ing word.


There is no real code needed to count the number of times. Do a find and
replace with the word in both places. Replace all - it will tell you how
many times it "replaced" it.


If I do this, will word maintain the capitals and non-caps?

Thanks for the reply.


--

JoAnn Paules
MVP Microsoft [Publisher]
Tech Editor for "Microsoft Publisher 2007 For Dummies"



"froggfeathers" wrote in message
...
I need to find all occurrences of the word was followed by any word ending
with ing. When I find (was *ing) I get long blocks of text that don't
help
me. Can I limit this search to only two words, the word was followed
directly by *ing?

Also, while I am at it, what is the code to find a word and replace it
with
the same word so I can get a count of how many occurrences of a word I
have
in a document.

Thanks in advance!