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.

Visual Basic for Applications
Worksheets(1).ChartObjects(1).ProtectChartObject = True
keep chart object from being moved prohibit changing chart frame protect protect chart object Protect Chart Object Property protectchart ProtectChartObject protectchartobject property

See also: