DataLabel Members (Excel)

Published: July 16, 2012

Represents the data label on a chart point or trendline.

Name

Description

Delete

Deletes the object.

Select

Selects the object.

Name

Description

Application

When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

AutoText

True if the object automatically generates appropriate text based on context. Read/write Boolean.

Caption

Returns or sets a String value that represents the data label text.

Characters

Returns a Characters object that represents a range of characters within the object text. You can use the Characters object to format characters within a text string.

Creator

Returns a 32-bit integer that indicates the application in which this object was created. Read-only Long.

Format

Returns the ChartFormat object. Read-only.

Formula

Gets or sets a String value that represents the formula of the object using A1-style notation, in English. Read/write.

FormulaLocal

Gets or sets a String value that represents the formula of the object using A1-style notation, in the language of the user. Read/write.

FormulaR1C1

Gets or sets a String value that represents the formula of the object using R1C1-style notation, in English. Read/write.

FormulaR1C1Local

Gets or sets a String value that represents the formula of the object using R1C1-style notation, in the language of the user. Read/write.

Height

Returns the height, in points, of the object. Read/Write.

HorizontalAlignment

Returns or sets a Variant value that represents the horizontal alignment for the specified object.

Left

Returns or sets a Double value that represents the distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).

Name

Returns a String value that represents the name of the object.

NumberFormat

Returns or sets a String value that represents the format code for the object.

NumberFormatLinked

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells). Read/write Boolean.

NumberFormatLocal

Returns or sets a Variant value that represents the format code for the object as a string in the language of the user.

Orientation

Returns or sets a Variant value that represents the text orientation.

Parent

Returns the parent object for the specified object. Read-only.

Position

Returns or sets a XlDataLabelPosition value that represents the position of the data label.

ReadingOrder

Returns or sets the reading order for the specified object. Can be one of the following constants: xlRTL (right-to-left), xlLTR (left-to-right), or xlContext. Read/write Long.

Separator

Sets or returns a Variant representing the separator used for the data labels on a chart. Read/write.

Shadow

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

ShowBubbleSize

True to show the bubble size for the data labels on a chart. False to hide. Read/write Boolean.

ShowCategoryName

True to display the category name for the data labels on a chart. False to hide. Read/write Boolean.

ShowLegendKey

True if the data label legend key is visible. Read/write Boolean.

ShowPercentage

True to display the percentage value for the data labels on a chart. False to hide. Read/write Boolean.

ShowRange

Used to toggle the Range field if it exists on the data label range. Boolean Read/Write

ShowSeriesName

Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. True to show the series name. False to hide. Read/write.

ShowValue

Returns or sets a Boolean corresponding to a specified chart's data label values display behavior. True displays the values. False to hide. Read/write.

Text

Returns or sets the text for the specified object. Read/write String.

Top

Returns or sets a Double value that represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).

VerticalAlignment

Returns or sets a Variant value that represents the vertical alignment of the specified object.

Width

Returns the width, in points, of the object. Read-only.

Community Additions

ADD
Show:
© 2014 Microsoft