Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing value of chart axes based on the minimum value of the plotted series


Hi,

I am trying to create a code to define the minimum value of the Y-axi
based on the minimum value of the plotted series. Something wrong wit
the code. Perhaps anyone give me an idea how to do this!!!
Thanks and more power!!!

With ActiveChart.Axes(xlValue)
.Select
dblMin = .MinimumScale
End With
With ActiveChart.SeriesCollection(SeriesNo)
.Select
nminValue = min(.Values = "=Table1!R1C1:R10C10")
<------Perhaps somethig wrong with this line.
End with

If dblMin = 0 then
dblMin = nminValue
With ActiveChart.Axes(xlValue)
.select
.MinimumScale = dblMin
end with
end If


BR,
Bil

--
Billabon
-----------------------------------------------------------------------
Billabong's Profile: http://www.excelforum.com/member.php...fo&userid=1090
View this thread: http://www.excelforum.com/showthread.php?threadid=26980

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create 3 axes chart based on three series of data Shaharuddin, Malaysia Charts and Charting in Excel 0 August 21st 09 04:16 AM
bar chart axes minimum & maximum KRK Charts and Charting in Excel 1 March 21st 08 01:45 PM
Hiding a non-plotted chart series in legend Gromit Excel Discussion (Misc queries) 0 January 12th 06 09:42 PM
Adding series, this time with a 2 axes line chart Barb Charts and Charting in Excel 1 December 9th 05 08:48 AM
One data series and two y-axes in an Excel chart? [email protected] Charts and Charting in Excel 1 December 30th 04 03:35 PM


All times are GMT +1. The time now is 06:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"