XLL+ Class Library

CXlMacros::WorkbookProtect

Renames a sheet in a workbook

[C++]
static int WorkbookProtect(
   bool structure = false,
   bool windows = false,
   const char* password = 0
);

Parameters

structure

Structure specifies whether the structure of the workbook is protected.

windows

Windows specifes whether the windows of the workbook are protected.

password

Password specifies whether to protect the workbook with a password.

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