This simply steps through each section, determines the word count in that section, and displays the summary information in a message box. Summary = Summary & "Section " & S & ": " _ If you just want to know the number of words in each section of your document, the following macro can be helpful. This means that you will need to rely on a macro to get the desired word count. You can find it out manually by selecting the text in the section and then choosing the Word Count tool, but that obviously doesn't satisfy the desire to have a value that can be inserted into your document and automatically updated. There is no field that will return this information. If you want to find out the number of words in a section, and have it dynamically placed in a document, then you are out of luck. When the field is updated, it is replaced with however many words are then in the document. For instance, you can use the NumWords field to insert the number of words in the document. When the field is updated, it is replaced with whatever information is current relative to the field in use. One of the benefits of fields is that you can insert dynamic information within your document.
0 Comments
Leave a Reply. |