Microsoft KB Archive/37977

Using Word’s Supplied Indexing Macro

PSS ID Number: Q37977 Article last modified on 11-02-1994

4.00 5.00

MS-DOS

= SUMMARY =

The following are the steps to properly use the macro called Index.Mac provided in the MACRO.GLY file shipped with Word:


 * 1) Create a document that contains a list of words with which you want to index your document file.
 * 2) For Word 4.00, use the Transfer Glossary Merge command to merge the file called MACRO.GLY. For Word 5.00, use the Transfer Glossary Load command to load the file called MACRO.GLY.
 * 3) Load into Word the document that you will later index with the Library Index command. Note: this is not the list document referenced in Step 1.
 * 4) Run the macro. The macro will generate a message on the screen asking you to type the name of the file that contains the words to be indexed. Type in the name of the list document referenced in Step 1.

= MORE INFORMATION =

The above procedure puts in the appropriate hidden codes (.i. and ;) into your document. If the very first word in your document is one that you want indexed, this macro will not put in index codes for it. This is a limitation of Word’s selection process, not the macro. To work around this behavior, simply add a paragraph mark before the first word during the running of the macro.

The macros shipped with Word 4.00 and 5.00 are intended to be used more as examples of macros, rather than a program feature. These macros work for strict cases; therefore, it may seem as if these macros do not work correctly for your particular application. This is not a problem with Word, or with the macros. These macros were tested at Microsoft and do perform the specific function for which they were designed.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.