The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you use the GET.DEF() function to return a local name from a workbook, you receive a macro error message similar to the following if you include the sheet name in the def_text argument (the information referenced by the name):
CAUSE
The macro error occurs when you include the sheet name in the def_text
argument, and you do not include the sheet name in the document_text
argument (the sheet that contains def_text).
This error only occurs when the def_text argument is not on the first
sheet in the workbook. For example, the following does not cause a
macro error:
Note that this problem does not occur when you use the GET.DEF() function
to return a global name.
WORKAROUND
To work around this problem, do not include the sheet name in the def_text
argument, even though the reference of the defined name includes the sheet
name. Instead, include the sheet name, with or without the workbook name,
in the document_text argument, to specify the name of the sheet that
contains the referenced information.
Use the following example if the defined name is located in a workbook
other than the workbook that contains the function:
Microsoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to
provide added functionality or construct procedures to meet your specific
needs. If you have limited programming experience, you may want to contact
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/overview/overview.asp MORE INFORMATION
You can use the GET.DEF() function to return the name, as text, that is
defined for a particular area, value, or formula in a workbook. REFERENCESFor more information about the GET.DEF function, choose the Search button in Macro Functions Help and type: GET.DEF Additional query words: 5.00a 5.00c 7.00a 97 XL97 XL7 XL5 err msg
Keywords : kbcode kberrmsg kbprg |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |