Chart.Deselect Method

Excel Developer Reference

Cancels the selection for the specified chart.

Syntax

expression.Deselect

expression   A variable that represents a Chart object.

Example

This example is equivalent to pressing ESC while working on the active chart. The example should be run on a chart that has a component (such as an axis) selected.

Visual Basic for Applications
  ActiveChart.Deselect