XLL+ Class Library (6.3)

CXlMacros::WorkbookProtect

Renames a sheet in a workbook

static int WorkbookProtect(
   bool structure = false,
   bool windows = false,
   LPCTSTR 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