If you have a chart in a report, and VBA code acumulates data that would go off the pre-set Y-AXIS scale of the chart, is there anyway for that VBA code to change the Y-AXIS Scale Minimum?
On a scale of 0% - 105%, the majority of my data is condensed around 80% +/- 20% so I have the Y-AXIS minimum set to something like .55 (55%).
There is rare instances that the data could go below 55%. Rather that compressing the chart for that rare instance, it would be nice if I could change the Y-AXIS Scale Minimum on the fly?
I have tried this:
Me.ProbeHistogram.Object.Scale.Minimum = AVGMin / 100
but I get an "object doesn't support this property or method" error. So that code must be way off.
Thanks kindly for your helpp
On a scale of 0% - 105%, the majority of my data is condensed around 80% +/- 20% so I have the Y-AXIS minimum set to something like .55 (55%).
There is rare instances that the data could go below 55%. Rather that compressing the chart for that rare instance, it would be nice if I could change the Y-AXIS Scale Minimum on the fly?
I have tried this:
Me.ProbeHistogram.Object.Scale.Minimum = AVGMin / 100
but I get an "object doesn't support this property or method" error. So that code must be way off.
Thanks kindly for your helpp