Syntax

expression.ProtectGoalSeek

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 data points on embedded chart one on worksheet one.

Visual Basic for Applications
Worksheets(1).ChartObjects(1).Chart.ProtectGoalSeek = True
keep user changing data points with mouse protect protect data points from mouse actions protect goal seek Protect Goal Seek Property protectgoal ProtectGoalSeek protectgoalseek property secure data points