![]() Paragraphs: The number of Paragraphs counted in our DocumentĪnd Lines: The number of Lines counted in our Document. I just select the Word Count command, and the Word Count dialog box appears as shown: FYI: To See The Word Count At A Glance, Check Out The Status Bar. Lines… We Count Them So You Don’t Have To. I then hover my mouse over the Word Count command, I am notified with the following: Words, Characters. I select the Review tab and locate the area of the ribbon named Proofing which is located at the left as shown in the image below. I now want to Count the exact Words that I have typed in the Document. In the image below, I have created a Microsoft Word Document that contains a lot of Pages, and to be precise, it contains 56 pages. If You Want To Learn How To Count Words in a Microsoft Word Document, read the post that follows. With the Word Count feature available in Microsoft Word, besides counting Words, we can count Pages, Characters with Spaces, Characters without Spaces, Paragraphs and Lines. So, how can we know how many words we have typed in exactly? This is where we must use the Word Count feature. We know that we must stay within the limit, otherwise there will be a penalty. In this case, the name of each bookmark is examined, and if the name is exactly 6 characters long and begins with "BkMk", then it is considered a selection of text we should pay attention to because it fits the naming format we decided upon.Say that we are handing over an essay that we typed in Microsoft Word and we know that the document that we must deliver is restricted to either to 2000 or 30000 words. This version of the macro is largely the same as previous version, except in how the sVName is determined. Value:=.Bookmarks(J).Range.ComputeStatistics(wdStatisticWords) If Len(sVName) = 6 And Left(sVName, 4) = "BkMk" Then (See the similarity to the section numbers described earlier?) Now you could run a macro such as this: For instance, let's say you wanted to use bookmarks that used a format such as BkMk01, BkMk02, etc. All you need to do is to figure out what naming convention you wanted to use for the bookmarked selections. It will necessarily be a bit more complex, but will work just as easily. If you didn't use sections in your document, and you wanted, instead, to reference portions of the document, you could expand the above concept so that it referred to bookmarked text. Thus, if you previously used a DOCVARIABLE field to get the word count for Sec04, but adding a new section bumped that section to Sec05, you'll need to manually update the DOCVARIABLE field to reference the new section numbering. Remember, as well, that if you add a new section in the middle of your document, your section numbering will change. Then, update the fields, and your word counts are updated. If there is no document variable named "Sec02" that is defined-for instance, you haven't run the macro or the document doesn't have a second section-then the field returns "Error! No document variable supplied." Otherwise, it returns the word count that is stored in the document variable.Įvery time you update the text in the various sections of your document, you'll want to re-run the macro to update the word counts. Here is the format of the field if you want to insert the word count for section 2: ![]() Why place the word counts into document variables? Because you can then use a field, in your document, to reference the value (the word count) stored in the document variable. Finally, a new document variable is added, using the defined name, that contains the word count for the section. The code then steps thorough each document variable and, if the name (Sec01, Sec02, etc.) is already in use, then the document variable is deleted. This name is stored in the sVName variable, and will have a format such as Sec01, Sec02, Sec03, and so on. ![]() This macro steps through each section in the document and puts together a name for the document variable that will apply to that section. Value:=.Sections(J).Range.ComputeStatistics(wdStatisticWords) You could, however, use a macro, along with document variables, to include the desired information-at least when it comes to word count for sections. There is no field that will allow you to include this information dynamically. That is the sort of word count he would like to add to the document. On the status bar he can see the number of words in whatever text he selects in the document. He wonders if there is a way to include the number of words in, say, a section or a portion of the document. Bernard can add a NumWords field to his document which returns the number of words in the entire document. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |