XLL+ Class Library (6.3)

CXlMacros::GetActiveWorksheetName

Returns the name of the active worksheet

static int GetActiveWorksheetName(
   CString& book_name,
   bool full_name = false
);

Parameters

book_name

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

full_name

If true, then the full sheet name will be returned, in the form "[BOOK1.XLS]Sheet1". If false, then only the sheet name will be 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.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods