XLL+ Class Library (6.3)

CXlMacros::GetDef

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
);

Parameters

strname

A reference to a string that will contain the desired data if the function succeeds.

def_text

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

Document_text specifies the sheet or macro sheet that def_text is on.

type_num

Type_num is a number from 1 to 3 specifying which types of names are returned.

Return Value

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.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods