title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ChartObject.ZOrder property (Excel) |
vbaxl10.chm494096 |
|
|
1d3e3557-66c5-78f8-a86c-c0d64af63bc6 |
04/20/2019 |
medium |
Returns the z-order position of the object. Read-only Long.
expression.ZOrder
expression A variable that represents a ChartObject object.
In any collection of objects, the object at the back of the z-order is collection(1), and the object at the front of the z-order is collection(collection.Count).
For example, if there are embedded charts on the active sheet, the chart at the back of the z-order is ActiveSheet.ChartObjects(1)
, and the chart at the front of the z-order is ActiveSheet.ChartObjects(ActiveSheet.ChartObjects.Count)
.
This example displays the z-order position of embedded chart one on Sheet1.
MsgBox "The chart's z-order position is " & _
Worksheets("Sheet1").ChartObjects(1).ZOrder
[!includeSupport and feedback]