XL5: Defining Name in Name Box Causes Type Mismatch Error

Last reviewed: March 27, 1997
Article ID: Q110857
5.00 5.00c 7.00 WINDOWS kbusage

The information in this article applies to:

  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0

SUMMARY

In Microsoft Excel, if you enter a name in the name box on the formula bar and that name is one of the constants reserved for a Visual Basic module sheet, you may receive the following error message:

   Microsoft Excel: Type Mismatch

You will have the option to choose OK or Help. If you choose OK the name is created successfully.

MORE INFORMATION

In the Microsoft Visual Basic Programming System, Applications Edition, several predefined constants make programming easier. These constants are descriptive and can be used as parameters in functions and methods in a Visual Basic macro.

Choosing the Help button in the error message dialog box brings up Visual Basic Help and displays the Type Mismatch (Error 13) topic. The information in this help topic does not mention reserved constants as a possible cause for this error message.

WORKAROUND

This problem does not occur when you use the Name command on the Insert menu to define a name.

REFERENCES

"User's Guide," version 5.0, Chapter 10, "Names Make References Easier to Use"

For more information about the name box, choose the Search button in Help and type:

    name box


KBCategory: kbusage
KBSubcategory:

Additional reference words: 5.00 7.00
Keywords : kbusage
Version : 5.00 5.00c 7.00
Platform : WINDOWS


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