ID: Q160485
The information in this article applies to:
You cannot run a Microsoft Visual Basic for Applications macro from the Macros dialog box.
The macro is listed in the Macros dialog box; however, when you select the macro, the Run button is not available.
This problem may occur if the following conditions are true:
-and-
-and-
numbers and underscore characters. The following characters, which are valid characters to use in module names in Microsoft Excel 5.0 and 7.0, are
not valid characters for module names in Microsoft Excel 97 or Microsoft Excel 98 Macintosh Edition.
Character Name
--------------------------------------
Space
$ Dollar Sign
~ Tilde
! Exclamation Point
% Percent
& Ampersand
- Hyphen
{ Left brace
} Right brace
( Left parenthesis
) Right parenthesis
` Accent grave
@ At sign
' Apostrophe
+ Plus
= Equal sign
^ Accent circumflex, carat
To resolve this problem, change the name for the module to a valid module name. To do this, follow these steps:
1. Open the workbook.
2. Press ALT+F11 to open the Visual Basic Editor, or press OPTION+F11 in
Microsoft Excel 98.
3. On the View menu, click Project Explorer to view the Project Explorer.
4. Double-click the Modules folder for the workbook.
5. Select the module and press F4 to display the properties for the module,
or press F6 in Microsoft Excel 98.
6. Change the (Name) property of the module to a valid module name.
7. Press ALT+Q to switch to Microsoft Excel, or press COMMAND+Q in
Microsoft Excel 98.
You can run the macro from the Macros dialog box.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
Additional query words: 97 XL97 8.0 8.00 dialog box gray grayed
Keywords : kbdta KbVBA
Version : WINDOWS:97
Platform : WINDOWS
Last Reviewed: January 1, 1999