• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Count of specific string in Word (was re: Count of Tab characters)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Count of specific string in Word (was re: Count of Tab characters)


  • Subject: Count of specific string in Word (was re: Count of Tab characters)
  • From: Bill Planey <email@hidden>
  • Date: Mon, 12 Feb 2001 22:20:39 -0600

I desperately need a way to count the number of occurrences of a
specified string in MS Word. I have a script which puts a placeholder
in certain paragraphs that have met my criteria. This placeholder is
"zwx".

I want the script to either:

delete any paragraph which is found to contain the string by
using a broad statement to do so, something like:

tell MS Word
for any paragraph which contains string "zwx"
delete entire paragraph
end tell

or:

tell MS Word
set count of paragraphs which contain string "zwx" to ParaCount
repeat ParaCount times
find string "zwx"
extend selection to entire paragraph
delete selection
end repeat
end tell

Now, I know my "code" above is wrong, I just wanted to simply express
the concept. Anyone out there with some experience with this kind of
thing?

Thanks!!!

Bill Planey


  • Follow-Ups:
    • Re: Count of specific string in Word (was re: Count of Tab characters)
      • From: Emmanuel <email@hidden>
    • Re: Count of specific string in Word (was re: Count of Tab characters)
      • From: Jed Verity <email@hidden>
  • Prev by Date: Re: Garbage collection and objects
  • Next by Date: Re: Count of specific string in Word (was re: Count of Tab characters)
  • Previous by thread: Newbie learning to script the finder
  • Next by thread: Re: Count of specific string in Word (was re: Count of Tab characters)
  • Index(es):
    • Date
    • Thread