Sep 03 2022 09:51 AM
Hello Experts,
I have done some research on this topic and I have not been able to find a way to add a dynamic chart title. I have to manually copy and paste my text to the chart's subtitle field in the chart's properties.
Is there a trick to adding a dynamic subtitle?
Sep 03 2022 01:40 PM - edited Sep 03 2022 01:42 PM
You just need to read the properties sheet to see what is available:
For example, if your chart is Chart0, then add code like this to the Form_Load event:
Me.Chart0.ChartTitle = "Your Chart Title Here"
Me.Chart0.HasSubtitle = True
Me.Chart0.ChartSubtitle = "Your Subtitle Here"
Sep 03 2022 03:51 PM
ah Ok I see.
Could I refer to a query somehow?
In the below, I manually type the Chart Subtitle and it comes from a query and I would like to somehow refer to the query to avoid manually typing making it more dynamic.
Sep 03 2022 04:21 PM
SolutionSep 04 2022 06:37 AM
Sep 04 2022 07:05 AM
Sep 04 2022 08:01 AM
Hi IslaDogs,
I have a quick follow up when you have a sec.
Do you happen to know how to break a long ChartSubtitle line into 2 lines?
I thought by adding a continuation character would break it into 2 lines but that didnt seem to work as its still in 1 long line.
Wondering if you happen to know of a workaround?
Sep 04 2022 09:24 AM
Yes - use a classic chart where each part of the chart can be manipulated
I don't believe you can adjust the size or appearance of subtitles in a modern chart
Sep 03 2022 04:21 PM
Solution