Name
chart
.ProtectData [= setting
]
Synopsis
Sets or returns whether or not the user can change series formulas on the chart. Default is False. This setting operates independent of the other protection settings. The following code prevents changes to the way series are calculated on a chart:
Set chrt = ThisWorkbook.Sheets("Protected Chart") chrt.ProtectData = 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.