WD98: "All Active Templates and Documents" Missing Macros

Last reviewed: March 3, 1998
Article ID: Q181841
The information in this article applies to:
  • Microsoft Word 98 Macintosh Edition

SYMPTOMS

When you display the Macros dialog box, you have the option to list available macros from different sources in the Macros In box. One of the options is "All Active Templates and Documents." When you select this option, you may not see the macros you expect.

CAUSE

The "All Active Templates and Documents" option lists macros available In the following:

  • Templates or documents placed in the Office Start Up folder.
  • Templates or documents made available when you click Templates And Add- Ins on the Tools menu.
  • The currently active document and its attached template.

The "All Active Templates and Documents" option does NOT show the following:
  • Macros in non-active, but currently open, documents or templates.
  • New, Open, or Close events for any document.
  • Visual Basic for Applications code placed in UserForm event procedures and Sub procedures or Function procedures.
  • Sub procedures or Function procedures that expect arguments, as in the following examples:

          Sub MySub (MyString As String)
    
          -and-
    
          Function MyFunction (MyString As String)
    
    
  • Sub procedures or Function procedures declared as Private, as in the following examples:

          Private Sub MySub ()
    

          -and-
    

          Private Function MyFunction ()
    

WORKAROUND

Activate the document or template containing the macros you want to see before you display the Macros dialog box.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q173707
   TITLE     : OFF97: How to Run Sample Code from Knowledge Base Articles

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications


Additional query words: vba vb vbe
Keywords : kbdta kbdtacode kbmacroexample OffVBA macword98
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbbug
Solution Type : kbnofix


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: March 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.