SuperDocStatistics Macro: Purpose, Features, Issues

ID: Q110176

The information in this article applies to:

SUMMARY

This article discusses the purpose, usage, and known support issues for the SuperDocStatistics macro, supplied with Word 6.0 for Windows in the MACRO6.DOT file.

PURPOSE AND FEATURES OF THE MACRO

KNOWN ISSUES

1. Word Basic Error #102 occurs if the grammar checker is not installed.

   This problem was corrected in Word version 7.0 for Windows 95.
2. The macro does not generate a font report. 3. The dialog box takes a long time to appear. 4. Improper case is used in the macro's status bar with graphics. 5. Graphics are bookmarked by the macro. 6. Word counts are not as accurate as Word Count.

1. Word Basic Error #102 occurs if the grammar checker is not installed.

If the grammar checker is not installed in 6.x, SuperDocStatistics generates a WordBasic Error #102 (Command Failed) before the initial dialog box appears. This should only occur if you chose Custom Setup when installing Word and you did not install the grammar checker (or you installed the grammar checker and removed it with Setup).

This problem was corrected in Word version 7.0 for Windows 95.

To work around this problem, do one of the following:

Note: The following steps assume you have a basic knowledge of working with macros. For more information, consult the "Word for Windows Macro Developer Kit."

To modify the macro, do the following:

1. Copy the macro to your Normal template so it can be edited.

2. Open the macro in an editing window.

3. From the top of the code, search for the text "counttools" (without

   the quotation marks).

4. Insert an apostrophe (') in front of the line to comment it out (that
   is, disable it).

5. Save the macro.

Note: The macro will now start but will still generate a "Command Failed" error if the Grammar option is chosen. Do not choose the Grammar option.

2. The macro does not generate a font report.

When you select the Create Report option when the font statistics are shown, the macro generates some heading information for fonts as if it will create a report, but no information about fonts is actually added to the report.

3. The dialog box takes a long time to appear.

On systems with low memory or Windows resources, the dialog box may take considerable time to appear. The macro code itself is lengthy, and there are many variables that need to be declared. The macro first displays "Initializing. Please Wait....." on the status bar when it starts. Longer documents causes the macro to start slower because the macro repaginates the document when it is started.

4. Improper case is used in the macro's status bar with graphics.

When the macro reports the number of graphics found in the document, the singular and plural cases are reversed. For example, the macro will report "Found 1 graphics" or "Found 2 graphic."

5. Graphics are bookmarked by the macro.

The macro will automatically bookmark any graphics it finds in the document. The bookmarks are called Graphic1, Graphic2, and so forth, and are left in the document after the macro ends.

6. Word counts are not as accurate as Word Count.

The word count returned by the macro is not the same as the count returned by the Word Count feature in Word. Using Word Count from the Tools menu, returns a more accurate count of words in a document. (The Word Count results can also be found by choosing Summary Info from the File menu, and choosing the Statistics button.)

KBCategory: kbusage kbmacro KBSubcategory: Additional query words: 6.0 winword 6.0a 6.0c 7.0 word95 word6 word7

Version           : WINDOWS:6.0,6.0a,6.0c,7.0
Platform          : WINDOWS

Last Reviewed: February 4, 1999