Bewerken

Delen via


Legend.Position property (Excel)

Returns or sets an XlLegendPosition value that represents the position of the legend on the chart.

Syntax

expression.Position

expression A variable that represents a Legend object.

Example

This example moves the chart legend to the bottom of the chart.

Charts(1).Legend.Position = xlLegendPositionBottom

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.