XLL+ Class Library (7.0)

CXlMacros::Links

Returns the names of all workbooks referred to by external references in the workbook specified

static int Links(
   std::vector<CString>& links,
   LPCTSTR document_text = "",
   short int type_num = 1
);

Parameters

links

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

document_text

Document_text is the name of a workbook, including its path.

type_num

Type_num is a number from 1 to 6 specifying the type of linked workbooks to return.

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