Renames a sheet in a workbook
static int WorkbookProtect( bool structure = false, bool windows = false, LPCTSTR password = 0 ); |
Structure specifies whether the structure of the workbook is protected.
Windows specifes whether the windows of the workbook are protected.
Password specifies whether to protect the workbook with a password.
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