Allows you to control cell protection and display
[C++]
static int CellProtection(
   short int locked,
   short int hidden
);
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 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.
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.
See the Microsoft Excel on-line Help for full details about
            this function.
Header: xlfuncs.h