WD97: How to Access Sample Macros for Word 97

Last reviewed: December 19, 1997
Article ID: Q162490
The information in this article applies to:
  • Microsoft Word 97 for Windows

SUMMARY

Word 97 for Windows includes 3 templates that contain sample macros that are not immediately available after you install Word. After running a Complete installation of Word 97 for Windows, the following files are copied to a Macros folder in the default directory, C:\Program Files\Microsoft Office\Office\Macros:

   Convert8.WIZ
   Macros8.DOT
   Support8.DOT

This article discusses information about these templates and macros as well as how to access these macros.

MORE INFORMATION

To access the Word sample macros, follow these steps:

  1. Make sure the macros were installed by Setup.

    The macros are installed if you performed a Custom installation and explicitly chose to install the macros or if you chose the Select All button to install all of the Office or Word program.

    In the Office Setup program the macros can be found under Microsoft Word, Wizards And Templates, and then Macro Templates. For additional information, please see the following article in the Microsoft Knowledge Base:

          ARTICLE-ID: Q120802
    
          TITLE     : Office: How to Add/Remove a Single Office Program or
                      Component
    
    

  2. Decide how often you will use the macros. If you will only be using the macros occasionally, or if you want to see what the macros do before you decide whether you want to make them easily accessible, use Method 1. If you will be using the macros often, use either of the options discussed in Method 2.

Method 1: If You Will Be Using the Macros Occasionally

If you will be using the macros occasionally (or if you want to see what they do before you decide to make them easily accessible), add the macro templates as global templates.

NOTE: When you load a template or add-in, it remains loaded for the current Word session. If you quit and then restart Word, the template or add-in is not automatically reloaded.

To add one of the files listed in the "Summary" section as a global template, follow these steps:

  1. On the Tools menu, click Templates And Add-Ins.

  2. Under Global Templates And Add-ins, click Add.

  3. In the Look In box, change the folder to C:\Program Files\Microsoft Office\Office\Macros, and in the Files Of Type box, select All Files (*.*).

  4. Click Convert8.WIZ, and then click OK.

  5. Repeat steps 3-4 for the Macros8.DOT and Support8.DOT files.

  6. After all files are showing in the Templates And Add-ins dialog box, make sure you place a check mark in the check box for the ones you want to load, and then click OK.

Method 2: If You Will Be Using the Macros Often

Option 1: Move the Templates into the Startup Folder:

Word will automatically have access to any macros in templates that are placed in the Microsoft Office\Office\Startup folder. Using Windows Explorer, place copies of the Convert8.wiz, Macros8.dot, or Support8.dot files into the Startup folder.

When you restart Word, these templates will be global templates and the macros will be visible in the Macro dialog box. Note that a disadvantage to this method is that Word will take a bit longer to start (each time it starts, it will load these templates globally).

Option 2: Copy the Macros into the Normal Template:

Follow these steps to copy the macros into the Normal template (Normal.dot):

  1. Open Convert8.WIZ.

  2. On the Tools menu, click Templates And Add-Ins, click Organizer, and then select the Macro Project Items tab.

  3. The macros in the Convert8.WIZ template should be listed on one side of the dialog box. Normal.dot should be open on the other side.

  4. Select the macros in Convert8.WIZ, and then click the Copy button. Click OK to close the Organizer.

  5. Repeat steps 1-4 for Macros8.DOT and Support8.DOT

The Convert8.WIZ is a wizard that contains the following useful macros to simplify converting and changing conversion options:

   Macro                     Explanation and Notes
   -----------------------------------------------------------------------

   AutoNew.Main              When opening a new document based on
                             Convert8.WIZ, it will present a dialog box and
                             ask if you want to perform a batch conversion
                             of files. Selecting this will start the macro
                             StartConversionWizard. It will also ask if you
                             want to Edit converter or filter options.
                             Selecting this option will start the macro
                             EditConversionOptions.

   AutoOpen.Options          This macro runs when you open the Convert8.WIZ
                             file and will ask the same questions as listed
                             in the explanation and notes to the
                             AutoNew.Main macro.

   EditConversionOptions     This macro allows you to set text and graphic
                             converter filter options from within Word.

   StartConversionWizard     This macro allows you to convert multiple
                             files of the same file format at the same
                             time.

The Macros8.DOT template contains the following useful macros you can use in your general work with Word for Windows. When this template is loaded, a Sample Macro toolbar will appear. These macros are designed to be run using the Sample Macro toolbar. It will list the following macros:

      ANSI Value
      AutoCorrectUtility
      FindSymbol
      InsertFootnote
      TableCellHelper
      SuperDocStatistics
      NormalViewHeaderFooter
      CopySpike
         Add Selection to Spike
         Insert Spike Contents
         Clear Spike Contents
         Preview Spike

What you will see if you click on Tools, point to Macro, and click on Macros are the following listed macros:

   Macro                     Explanation and Notes
   ---------------------------------------------------------------------

   AddSelectionToSpike       Component of CopySpike (found on the Sample
                             macro toolbar).

   AddToStd

   ANSIValue                 Displays the ANSI value of the selected
                             character.

   AutoCorrectUtil           Creates a backup copy of all AutoCorrect
                             entries.

   ClearSpikeEnties          Component of CopySpike.

   FindSymbol                Finds and replaces symbol characters.

   InsertFootnote            Inserts footnotes formatted for the Chicago
                             Manual of style or MLA specifications.

   InsertSpikeContents       Component of CopySpike.

   NormalViewHeaderFooter    View a document Header/Footer pane while in
                             Normal view.

   previewspike              Component of CopySpike.

   SuperDocStatistics        Displays formatting and section information
                             for the current document.

   SuperDocStatStart         Component of the SuperDocStatistics

   TableCellHelper           Displays the row and column reference in the
                             current table cell.

The Support8.DOT template contains the following useful macros for setting printer driver options and for changing registry settings for Word for Windows:

   Macro                     Explanation and Notes
   --------------------------------------------------------------------

   PrintFlags                Set advanced printer flags

   RegOptions                Lets you modify registration settings that
                             effect Word.


Additional query words: word8 word97 8.0 vb vba vbe shipped included
Keywords : kbualink97 kbusage
Version : 97
Platform : WINDOWS
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.