Class Point (Excel VBA)

The class Point represents a single point in a series in a chart.


Dim pnt as Point
Set pnt = Charts(1).SeriesCollection(1)

For Each

Here is an example of processing the Point items in a collection.


Dim pnt() As Double
For Each pnt In Charts(1).SeriesCollection(1).Points
	
Next pnt

Methods

ApplyDataLabels - Applies data labels to a point.

ClearFormats - Clears the formatting of the object.

Copy - If the point has a picture fill, this method copies the picture to the Clipboard.

Delete - Deletes the series the point belongs to.

Paste - Pastes a picture from the Clipboard as the marker on the selected point.

PieSliceLocation - Returns the vertical or horizontal position of a point on a chart item, in points, from the top or left edge of the object to the top or left edge of the chart area.

Select - Selects the object.

Properties

ApplyPictToEnd true if a picture is applied to the end of the point or all points in the series.

ApplyPictToFront true if a picture is applied to the front of the point or all points in the series.

ApplyPictToSides true if a picture is applied to the sides of the point or all points in the series.

DataLabel returns a DataLabel object that represents the data label associated with the point.

Explosion returns or sets the explosion value for a pie-chart or doughnut-chart slice. Returns 0 (zero) if there's no explosion (the tip of the slice is in the center of the pie).

Format returns the ChartFormat object.

Has3DEffect true if a point has a three-dimensional appearance.

HasDataLabel true if the point has a data label.

Height returns the height, in points, of the object.

InvertIfNegative true if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number.

IsTotal true if the point represents a total.

Left returns a value that represents the distance, in points, from the left edge of the object to the left edge of the chart area.

MarkerBackgroundColor sets the marker background color as an RGB value or returns the corresponding color index value. Applies only to line, scatter, and radar charts.

MarkerBackgroundColorIndex returns or sets the marker background color as an index into the current color palette, or as one of the following XlColorIndex constants: xlColorIndexAutomatic or xlColorIndexNone. Applies only to line, scatter, and radar charts.

MarkerForegroundColor sets the marker foreground color as an RGB value or returns the corresponding color index value. Applies only to line, scatter, and radar charts.

MarkerForegroundColorIndex returns or sets the marker foreground color as an index into the current color palette, or as one of the following XlColorIndex constants: xlColorIndexAutomatic or xlColorIndexNone. Applies only to line, scatter, and radar charts.

MarkerSize returns or sets the data-marker size, in points. Can be a value from 2 through 72.

MarkerStyle returns or sets the marker style for a point or series in a line chart, scatter chart, or radar chart.

Name returns the object name.

PictureType returns or sets an XlChartPictureType value that represents the way pictures are displayed on a column or bar picture chart.

PictureUnit2 returns or sets the unit for each picture on the chart if the PictureType property is set to xlStackScale (if not, this property is ignored).

SecondaryPlot true if the point is in the secondary section of either a Pie of Pie chart or a Bar of Pie chart. Applies only to points on Pie of Pie charts or Bar of Pie charts.

Shadow returns or sets a Boolean value that determines if the object has a shadow.

Top returns a value that represents the distance, in points, from the top edge of the object to the top edge of the chart area.

Width returns the width, in points, of the object.

ChartFormat - Provides access to the Office Art formatting for chart elements.

DataLabel - Represents the data label on a chart point or trendline.