Err Msg: "That Name Is Not Valid" or Macro Error at SET.NAME

Last reviewed: November 29, 1994
Article ID: Q65101
The information in this article applies to:
  • Microsoft Excel forthe Macintosh, versions 1.x, 2.2, 3.0, 4.0

SUMMARY

In Microsoft Excel, a defined name cannot be created with the name "C" or "R". If this is attempted, Excel will display a dialog box stating "That Name Is Not Valid." A defined name such as "R12XYZ" will cause the error dialog box to be displayed.

The characters "C" and "R" are reserved for use in "R1C1" notation.

Any name that could be confused with a cell reference is invalid. Any name that begins with a number is also invalid. Examples of names that cannot be used are "C", "R", "RC", "A1", "AB2", "DF24", "ZZ140", "1A", and "22Name".

The macro commands DEFINE.NAME and SET.NAME, which are used to define names, are also restricted by the above conditions. If a name is invalid, a macro error will result, indicating the cell on the macro sheet that contains the DEFINE.NAME or SET.NAME formula.


KBCategory: kbusage
KBSubcategory:

Additional reference words: 2.2 2.20 3.0 3.00 4.0 4.00


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