Name

chart.ProtectGoalSeek [= setting]

Synopsis

Sets or returns whether or not the user can change underlying charted values by clicking and dragging series data points on the chart. This setting operates independent of the other protection settings. The following code prevents the user from changing data by modifying the chart:

    Set chrt = ThisWorkbook.Sheets("Protected Chart")
    chrt.ProtectGoalSeek = True

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.