Chart.ProtectFormatting property (Excel)

True if chart formatting cannot be modified by the user. Read/write Boolean.

Syntax

expression.ProtectFormatting

expression A variable that represents a Chart object.

Remarks

This property is not persisted when the file is saved. If you set this property to True and then reopen the file, it will no longer be set to True.

Example

This example protects the formatting of embedded chart one on worksheet one.

Worksheets(1).ChartObjects(1).Chart.ProtectFormatting = True

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.