A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

specific language word count



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 11:19 AM posted to microsoft.public.word.docmanagement
matty rastafairy
external usenet poster
 
Posts: 5
Default specific language word count

Hello I have a word document with text in Spanish, English and Arabic. Is
there a way to count the number of words in one specific language? (i.e.
total word count is 2652 words but how many are spanish, how many english and
how many Arabic?)

Thanks for your time
  #2  
Old May 6th, 2010, 11:58 AM posted to microsoft.public.word.docmanagement
DeanH
external usenet poster
 
Posts: 1,783
Default specific language word count

You can use the Find function.
Press Ctrl+F to open Find dialog.
Leave the Find what box empty, check the Highlight all items found in [Main
Document], click More button. Format, Language, select the language you want
to find. OK, Find All button.
Close the Find dialog, and without click in the document, goto the Word
Count (if in 2007 you can have this displayed in the Status bar).
Repeat for the languages you want.

Hope this helps
DeanH


"matty rastafairy" wrote:

Hello I have a word document with text in Spanish, English and Arabic. Is
there a way to count the number of words in one specific language? (i.e.
total word count is 2652 words but how many are spanish, how many english and
how many Arabic?)

Thanks for your time

  #3  
Old May 6th, 2010, 12:01 PM posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
Default specific language word count

Use a macro containing the following code:

Dim English As Long, Spanish As Long, Arabic As Long
Dim aword As Range
English = 0
Spanish = 0
Arabic = 0
With ActiveDocument
For Each aword In .Words
If aword.LanguageID = wdEnglishAUS Then
English = English + 1
ElseIf aword.LanguageID = wdArabic Then
Arabic = Arabic + 1
ElseIf aword.LanguageID = wdSpanish Then
Spanish = Spanish + 1
End If
Next aword
End With
MsgBox "There are " & English & " English words, " & Arabic & " Arabic words
and " & Spanish & " Spanish words."

You will need to make sure that you select the correct version of English
and possibly Spanish.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"matty rastafairy" wrote in
message ...
Hello I have a word document with text in Spanish, English and Arabic. Is
there a way to count the number of words in one specific language? (i.e.
total word count is 2652 words but how many are spanish, how many english
and
how many Arabic?)

Thanks for your time


  #4  
Old May 6th, 2010, 12:06 PM posted to microsoft.public.word.docmanagement
DeanH
external usenet poster
 
Posts: 1,783
Default specific language word count

Forgot to say, in the Find dialog, check the option for "Whole Words only",
this will discount any paragraph marks on there own.

Hope this helps
DeanH


"DeanH" wrote:

You can use the Find function.
Press Ctrl+F to open Find dialog.
Leave the Find what box empty, check the Highlight all items found in [Main
Document], click More button. Format, Language, select the language you want
to find. OK, Find All button.
Close the Find dialog, and without click in the document, goto the Word
Count (if in 2007 you can have this displayed in the Status bar).
Repeat for the languages you want.

Hope this helps
DeanH


"matty rastafairy" wrote:

Hello I have a word document with text in Spanish, English and Arabic. Is
there a way to count the number of words in one specific language? (i.e.
total word count is 2652 words but how many are spanish, how many english and
how many Arabic?)

Thanks for your time

  #5  
Old May 6th, 2010, 12:07 PM posted to microsoft.public.word.docmanagement
DeanH
external usenet poster
 
Posts: 1,783
Default specific language word count

Sweet

DeanH


"Doug Robbins - Word MVP" wrote:

Use a macro containing the following code:

Dim English As Long, Spanish As Long, Arabic As Long
Dim aword As Range
English = 0
Spanish = 0
Arabic = 0
With ActiveDocument
For Each aword In .Words
If aword.LanguageID = wdEnglishAUS Then
English = English + 1
ElseIf aword.LanguageID = wdArabic Then
Arabic = Arabic + 1
ElseIf aword.LanguageID = wdSpanish Then
Spanish = Spanish + 1
End If
Next aword
End With
MsgBox "There are " & English & " English words, " & Arabic & " Arabic words
and " & Spanish & " Spanish words."

You will need to make sure that you select the correct version of English
and possibly Spanish.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"matty rastafairy" wrote in
message ...
Hello I have a word document with text in Spanish, English and Arabic. Is
there a way to count the number of words in one specific language? (i.e.
total word count is 2652 words but how many are spanish, how many english
and
how many Arabic?)

Thanks for your time


  #6  
Old May 10th, 2010, 08:50 PM posted to microsoft.public.word.docmanagement
matty rastafairy
external usenet poster
 
Posts: 5
Default specific language word count


Thanks so much for spending the time to reply
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.