Chart.Protect (Excel)
Protects a chart so that it cannot be modified.
Protect (Password, DrawingObjects, Contents, Scenarios, UserInterfaceOnly)
ActiveChart.Protect
Arguments
Optional arguments
The following arguments are optional
Password (String) - A string that specifies a case-sensitive password for the worksheet or workbook. If this argument is omitted, you can unprotect the worksheet or workbook without using a password. Otherwise, you must specify the password to unprotect the worksheet or workbook. If you forget the password, you cannot unprotect the worksheet or workbook. Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords don't mix these elements. Strong password: Y6dh!et5. Weak password: House27. Passwords should be 8 or more characters in length. A pass phrase that uses 14 or more characters is better. It is critical that you remember your password. If you forget your password, Microsoft cannot retrieve it. Store the passwords that you write down in a secure place away from the information that they help protect.
DrawingObjects (Boolean) - True to protect shapes. The default value is True.
Contents (Boolean) - True to protect contents. For a chart, this protects the entire chart. For a worksheet, this protects the locked cells. The default value is True.
Scenarios (Boolean) - True to protect scenarios. This argument is valid only for worksheets. The default value is True.
UserInterfaceOnly (Boolean) - True to protect the user interface, but not macros. If this argument is omitted, protection applies both to macros and to the user interface.