excel_help1234
New Member
- Joined
- Oct 23, 2017
- Messages
- 1
Hi,
I am trying to create VBA code that formats the y-axis labels of 10+ charts as ##B , ##M , ##k depending on the size of the data being plotted. Is there a way to set a VBA variable equal to the height (max value or sum of values) of the "tallest" data point, whether it is the highest value in a line chart or the tallest set of columns in a stacked column chart? Excel has to use something for the automatic scaling of these charts, is there any way for me to reference whatever number excel uses?
Sorry if that sounds confusing, feel free to reach out for any clarifications or questions.
Thanks!
I am trying to create VBA code that formats the y-axis labels of 10+ charts as ##B , ##M , ##k depending on the size of the data being plotted. Is there a way to set a VBA variable equal to the height (max value or sum of values) of the "tallest" data point, whether it is the highest value in a line chart or the tallest set of columns in a stacked column chart? Excel has to use something for the automatic scaling of these charts, is there any way for me to reference whatever number excel uses?
Sorry if that sounds confusing, feel free to reach out for any clarifications or questions.
Thanks!