Macro to list & collate words in a file?

A

Alarik

Hello.

I am not good at Word (v. X on Panther). I am trying to find a way to
create a list of all the words in a file (15,000 words, say) and to
collate them so that there are no repetitions. Ordinarily, this is
called creating a word list. Ordinarily, it would be done with a macro.
(I could convert the file to Wordperfect 3.5e, go back to OS 9, run
WP's macro and then return to Word and X but that seems . . . ?)

I have been unable to find any such macro or command for Word (in
Office v.X).

Does anyone have any suggestions? Is there such an animal?

Many thanks!

Alarik
 
D

Daiya Mitchell

Actually, this one comes up occasionally in the WinWord groups and they have
developed some macros over there--you'll find previous questions and answers
at this link. I would strongly suggest running all macros on a COPY of your
document. I've not tried these myself, but they've been offered a few times
without howls of pain at the results, as I recall. I think the first two
links have the more recent version of the macro.

http://groups-beta.google.com/group/microsoft.public.word.docmanagement/brow
se_frm/thread/9bbca53e9945d5f6/8fe90df4b4ffa998

http://groups-beta.google.com/group/microsoft.public.word.docmanagement/brow
se_frm/thread/5fb447bcb2a11f7f/0e1963224b93366e

http://groups-beta.google.com/group/microsoft.public.word.docmanagement/brow
se_frm/thread/a7c22a56ef0d4aac/8acd73c2b88cdef8

If you aren't familiar with installing macros you get in text from
elsewhere, see here:
http://word.mvps.org/MacWordNew/InstallMacroMac.htm
(hit refresh a few times in Safari, or use a different browser)

Hope that helps,
 
A

Alarik

Daiya, fyi those links appear to be defunct, 404. But, I'll continue
to look. Again, many thanks.
 
J

John McGhie [MVP - Word and Word Macintosh]

Hi Alarik:

I was able to get the links Daiya sent from here. Unfortunately, they point
to a macro that counts the "Frequency" of each word, it does not compile a
list of each unique word, which is the one you want.

Cheers

Daiya, fyi those links appear to be defunct, 404. But, I'll continue
to look. Again, many thanks.

--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie <[email protected]>
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 4 1209 1410
 
D

Daiya Mitchell

The links all work fine for me from my own message--probably a wrap problem.

I thought the first two counted unique words and their frequency, but I
might be wrong. However, the third one *is* for someone who wants to know
how many different words and how often each one is used. There's a lot of
discussion on that third link, so it may help you develop your own macro if
you want to.

If you want to search for it:
Subject: Word count, started by Albretch on March 28, 2003, on group:
http://groups-beta.google.com/group/microsoft.public.word.docmanagement

Alternatively, it would probably make more sense (it now dawns upon me, a
tad late :) to just go ask in one of the Word VBA groups, or search those
groups. The people who wrote the existing macros should be there to provide
them or answer questions about tweaks.

http://groups-beta.google.com/group/microsoft.public.word.word97vba or
http://groups-beta.google.com/group/microsoft.public.word.vba.beginners or
http://groups-beta.google.com/group/microsoft.public.word.vba.general

Be sure to tell them you are on a Mac and only have VBA 5 as Word 97 did.
For this purpose, I don't think that should be a problem.

Or just go the excel route. Depends on whether how many times you might want
to do this again, I suppose.

If you get a macro elsewhere, posting a link on this thread would be
appreciated.
 
A

Alarik

John, Daiya--

I'm not accustomed to so much help! I tried those links again (taking
wrap problems into account). Maybe Pather's Safari is the problem. In
any case, I found the discussion. I don't know which is more daunting
the Excel route or adapting the macro route. I'll study the page you
suggested (and wrote) regarding macro creation.

PS. You shd see the macros written for WordPerfect 3.5e by John
Rethorst and others! In any case, many thanks for your help.
 
A

Alarik

John,

Thank you so much.

I'm using Word v.X for Mac, and it might be different there. I'll have
to experiment--but it looks like I should do the work first! earn some
$ and then experiment!

Manythanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top