TIP: Click on subject to list as thread! ANSI
echo: ms_word
to: TIM ESAIAS
from: JIGAL VAN HEMERT
date: 1997-07-01 23:00:00
subject: word sorting?

High! Tim,
Ref: word sorting?, dd.28-Jun-97, from: Tim Esaias
 TE> Is there a function in Word that will sort through the words
 TE> in a document and list how many times each word appears? Some word
 TE> processors apparently can do this, but I haven't found anything
 TE> like that in Word.
Me neither, but you can always write a macro to do so:
-copy document to doc2
-change tabs and spaces to end-of-paragraph signs
-remove empty lines
-change all words to lower- or uppercase
-sort the lines
-:loop1
-read a line
-counter=0
-copy line to doc3
-:loop2
-if next line = read line then counter=counter+1; goto loop2
 else put count in doc3 at end of line; goto loop1
                     ___   __   __
Happy programming,  /   | / /__/ /
                ___/ /| |/ ___  /
Jigal.         /____/ |___/  /_/
--- Terminate 4.00/Pro
---------------
* Origin: Point 2 is a point too at Revolution Ballroom (2:281/721.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.