How do I store the minimum value of a chart series in a variable. TX
eg: MinVal = Application.Min(ActiveChart.SeriesCollection(1).Values)
Find minimum value of a chart series
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Find minimum value of a chart series
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78520
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Find minimum value of a chart series
It looks like you answered your own question...
Best wishes,
Hans
Hans
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Find minimum value of a chart series
You are right....I could have sworn it did NOT work when I posted it!!!! I think I did not have the chart selected...thats why!
I added code to check for this event!
TX again!
I added code to check for this event!
TX again!
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Microsoft MVP
- Posts: 3
- Joined: 23 Sep 2011, 15:41
Re: Find minimum value of a chart series
Sometimes I have seen the one line command fail, so I generally do this:
Dim vValues As Variant
vValues = ActiveChart.SeriesCollection(1).Values
MinVal = Application.Min(vValues)
Dim vValues As Variant
vValues = ActiveChart.SeriesCollection(1).Values
MinVal = Application.Min(vValues)
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Find minimum value of a chart series
Thanks for your valued input Jon. Appreciate it (and your website - which I reference often for charting tips and info.)
Cheers
Cheers
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.