Show word count of current word

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Word count showing but it only gives me the total number of words in
the document. I need to know the word count for the particular word my
cursor is on. How can I get Word to show me that information?
 
As far as I know Word does not ahve this function.
Try find replace and it will tell you how many occurances of replace happened.
Hope this helps.
DeanH
 
You could highlight all the document after the cursor, delete, look at the
wordcount, then click undo to replace the deleted text. not ideal but does
work.
 
Beach said:
I have Word count showing but it only gives me the total number of
words in the document. I need to know the word count for the
particular word my cursor is on. How can I get Word to show me that
information?

Put this macro in your Normal.dot or other global template
(http://www.gmayor.com/installing_macro.htm) and assign it to a keyboard
short cut or toolbar button
(http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToHotkey.htm or
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm):

Sub CurrentWordNumber()
Dim myRange As Range
Dim myCount As Long
Set myRange = Selection.Range
myRange.Start = ActiveDocument.Range.Start
myCount = myRange.ComputeStatistics(wdStatisticWords)
MsgBox "Now at word " & myCount
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top