Share via


ChartObject.ProtectChartObject Property (Excel)

True if the embedded chart frame cannot be moved, resized, or deleted through the user interface. Read/write Boolean.

Syntax

expression .ProtectChartObject

expression A variable that represents a ChartObject object.

Remarks

Setting this property to True will not protect the embedded chart frame from being modified through the object model.

Example

This example protects embedded chart one on worksheet one.

Worksheets(1).ChartObjects(1).ProtectChartObject = True

See Also

Concepts

ChartObject Object

ChartObject Object Members