Returns the name, as text, that is defined for a particular area, value, or formula in a workbook
static int GetDef( CString& strname, const CXlOper& def_text, LPCTSTR document_text = 0, short int type_num = 1 );
A reference to a string that will contain the desired data if the function succeeds.
Def_text can be anything you can define a name to refer to, including a reference, a value, an object, or a formula.
Document_text specifies the sheet or macro sheet that def_text is on.
Type_num is a number from 1 to 3 specifying which types of names are returned.
Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.
See the Microsoft Excel on-line Help for full details about this function.