XLL+ Class Library

CXlMacros::CellProtection

Allows you to control cell protection and display

[C++]
static int CellProtection(
   short int locked,
   short int hidden
);

Parameters

locked

Locked corresponds to the Locked check box. A value of -1 is treated as a missing argument, A value greater than 0 is treated as TRUE, and 0 is treated as FALSE.

hidden

Hidden corresponds to the Hidden check box. A value of -1 is treated as a missing argument, A value greater than 0 is treated as TRUE, and 0 is treated as FALSE.

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