XLL+ Class Library

CXlMacros::WorkbookName

Renames a sheet in a workbook

[C++]
static int WorkbookName(
   const char* oldname_text,
   const char* newname_text
);

Parameters

oldname_text

Oldname_text is the name of the sheet that you want to rename.

newname_text

Newname_text is the new name of the sheet.

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