ChartFont object (Word)
Contains the font attributes (font name, font size, color, and so on) for an object chart.
Remarks
If you don't want to format all the text in an AxisTitle, ChartTitle, DataLabel, or DisplayUnitLabel object the same way, use the Characters property of that object to first return a subset of the text as a ChartCharacters object. Then use the Font property of the ChartCharacters object to return a ChartFont object you can use to format the subset of text, as needed.
Example
The following example formats the title of the first chart as bold. Use the Font property to return the ChartFont object.
With ActiveDocument.InlineShapes(1).Chart
.AxisTitle.Font.Bold = True
End With
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for