Legend.IncludeInLayout property (Excel)

True if a legend will occupy the chart layout space when a chart layout is being determined. The default value is True. Read/write Boolean.

Syntax

expression.IncludeInLayout

expression A variable that represents a Legend object.

Remarks

This property does not affect whether a chart is in autolayout mode or not. If the user adds a title by using the Above Chart command, the chart will resize smaller. If the user then removes the title or selects one of the overlay title options, the chart will resize larger, as if the title were not on the chart.

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.