XLL+ Class Library (6.3)

CXlMacros::Names

Returns the specified names defined in the specified workbook

static int Names(
   std::vector<CString>& names,
   LPCTSTR document_text = 0,
   short int type_num = 1,
   LPCTSTR match_text = 0
);

Parameters

names

A vector of strings which will be populated with the list of names.

document_text

Document_text is text that specifies the workbook whose names you want returned.

type_num

Type_num is a number from 1 to 3 that specifies whether to include hidden names in the returned array.

match_text

Match_text is text that specifies the names you want returned and can include wildcard characters.

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