You will get close with this:
http://gregmaxey.mvps.org/Word_Frequency.htm
I haven't tried, but you might be able to revise the code that deals with
"singleword" to expand the scope of singleword passed the "_" character.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Greg Maxey - Word MVP
My web site http://gregmaxey.mvps.org
Word MVP web site http://word.mvps.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Raj"
news:83abe001-fdca-4f57-ba1f-626547247b7f@8g2000hse.googlegroups.com...
> Hi,
>
> I have a word document with the following words(sample) :
>
> Word_this_and that KK857 9269875 King king King
>
> I want a macro that shows word frequency count using space as the word
> separator. The count of above should be displayed as:
>
> Word_this_and 1
> that 1
> KK857 1
> 9269875 1
> King 2
> king 1
>
> Thanks in advance for the help
>
> Raj