Format related procedures in class DisplayUnitLabel (Word VBA)

This page presents procedures from class DisplayUnitLabel related to the theme Format: Format and IncludeInLayout


Returns the line, fill, and effect formatting for the object.

Dim cftFormatted As ChartFormat
Set cftFormatted = ActiveDocument.Background.Chart.Axes(1).DisplayUnitLabel.Format


True if a display unit label will occupy the chart layout space when a chart layout is being determined. The default is True.

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, as in previous versions of Microsoft Office. 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.

ActiveDocument.Background.Chart.Axes(1).DisplayUnitLabel.IncludeInLayout = True