Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
froggfeathers froggfeathers is offline
external usenet poster
 
Posts: 3
Default Limiting find to two words

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!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
JoAnn Paules JoAnn Paules is offline
external usenet poster
 
Posts: 4,241
Default Limiting find to two words

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

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.

--

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!


  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Klaus Linke Klaus Linke is offline
external usenet poster
 
Posts: 413
Default Limiting find to two words

In Edit Find, you can also check the box for "Match wildcards" and then
use
Find what: [!^32]@^32[!^32]@ing
Replace with: ^&
(and then click "Replace all").

The Find expression won't just match verbs though, but will also find "mean
something" and any other two words where the second ends with "ing"!

^32 is the code for a space. You could also type in a space instead.
[!^32]@ or [! ]@ matches a bunch of characters that are not spaces.
matches the start of a word, the end.

Regards,
Klaus


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

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.

--

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!



  #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!



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


I can work with that. I didn't think to put in the space. Thanks so much.

Frogg


"Klaus Linke" wrote:

In Edit Find, you can also check the box for "Match wildcards" and then
use
Find what: [!^32]@^32[!^32]@ing
Replace with: ^&
(and then click "Replace all").

The Find expression won't just match verbs though, but will also find "mean
something" and any other two words where the second ends with "ing"!

^32 is the code for a space. You could also type in a space instead.
[!^32]@ or [! ]@ matches a bunch of characters that are not spaces.
matches the start of a word, the end.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limiting the number of words allowed in a cell Ali Tables 7 May 22nd 08 01:54 PM
how do you find out how many words their are in the document!? anonymous Microsoft Word Help 1 October 17th 07 01:42 AM
Find and Replace all words that have a certain value in them, not just the value itself. El Capitán de las Albondigas Microsoft Word Help 1 September 30th 07 02:27 AM
What is required to find two words please Steved Microsoft Word Help 2 December 27th 05 07:41 PM
Find multiple words JustLearning Microsoft Word Help 4 June 24th 05 03:27 PM


All times are GMT +1. The time now is 07:22 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"