Microsoft KB Archive/181841

From BetaArchive Wiki
Knowledge Base


Article ID: 181841

Article Last Modified on 10/4/2002



APPLIES TO

  • Microsoft Word 98 for Macintosh



This article was previously published under Q181841


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 has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

REFERENCES

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

173707 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:

163435 VBA: Programming Resources for Visual Basic for Applications



Additional query words: wordcon vba vb vbe

Keywords: kbbug kbnofix kbmacroexample kbdtacode KB181841