Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#10
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
specific language word count
Thanks so much for spending the time to reply |
#11
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
specific language word count
Thanks so much for spending the time to reply |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
word count only for specific styles? | Microsoft Word Help | |||
How can I count number of uses of a specific word | Microsoft Word Help | |||
Count specific words in MS Word | Microsoft Word Help | |||
How to count occurances of specific words or phrases in a Word doc | Microsoft Word Help | |||
What is the formular that will count IF a specific word is found,. | Tables |