Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 1.05 KB

Excel.Chart.ProtectSelection.md

File metadata and controls

44 lines (25 loc) · 1.05 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Chart.ProtectSelection property (Excel)
vbaxl10.chm149160
vbaxl10.chm149160
Excel.Chart.ProtectSelection
a1b9cf7e-8cc3-f9fe-dfcf-c66469741edb
04/16/2019
medium

Chart.ProtectSelection property (Excel)

True if chart elements cannot be selected. Read/write Boolean.

Syntax

expression.ProtectSelection

expression A variable that represents a Chart object.

Remarks

When this property is True, shapes cannot be added to the chart, and the Click and DoubleClick events for chart elements don't occur.

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 prevents chart elements from being selected on embedded chart one on worksheet one.

Worksheets(1).ChartObjects(1).Chart.ProtectSelection = True

[!includeSupport and feedback]