The information in this article applies to:
SUMMARY
In Microsoft Word, when you use the Word Count command on the Tools menu,
the result for characters does not include the number of spaces and tabs in
your document.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/The following macro counts all the characters in the document including spaces and tabs- Example 1:
Below is an additional macro which counts all the characters in the document
including spaces and tabs to workaround this problem- Example 2:
NOTE: These macros include tabs, spaces and paragraph marks (except the last one
in the document). These macros do not take into consideration inline
objects. They count each inline object as one character. They do not count
text and graphics positioned in the drawing layer.
MORE INFORMATION
This functionality is different in Word 2.x for Windows, which includes
spaces, tabs, and paragraph marks in the count.
REFERENCES"Microsoft Word User's Guide," version 6.0, page 101 Additional query words: character count statistics document summary info
Keywords : kbmacro wordnt kbmacroexample winword ntword macword word6 word7 word95 |
Last Reviewed: December 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |