This behavior can occur if the following conditions are true:
- You originally created the workbook in Microsoft Excel 5.0 or 7.0.
-and-
- There is another Visual Basic module in the workbook that contains a
macro with the same name.
-and-
- The module name contains one or more invalid characters.
In Microsoft Excel, versions 97 and later, module names may consist only of letters, 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 Excel 97 and later versions of Excel.
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