Show word count of current word

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?
 
G

Guest

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
 
G

Guest

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.
 
J

Jay Freedman

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.
 

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