XLL+ Class Library (6.3)

CXlMacros::DocumentsA

Returns the names of the specified open workbooks

static int DocumentsA(
   std::vector<CStringA>& documents,
   short int type_num = 1,
   LPCSTR match_text = 0
);

Parameters

documents

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

type_num

Type_num is a number specifying whether to include add-in workbooks in the array of workbooks.

match_text

Match_text specifies the workbooks whose 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