ProtectFormatting Property

Microsoft Excel Visual Basic

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

Remarks

When this property is True, the Object command on the Format menu is disabled and chart elements cannot be added, moved, resized, or deleted.

Example

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

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