A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Referencing the Seconday Y axis scale values in code



 
 
Thread Tools Display Modes
  #1  
Old October 22nd, 2003, 06:02 PM
Ken Ramirez
external usenet poster
 
Posts: n/a
Default Referencing the Seconday Y axis scale values in code

Does anyone know how to Reference the Seconday Y axis
scale values in code? I am automating a spreadsheet that
uses a chart and i need to adjust these values at run
time. I'm using Visual Basic.

Thanks!
  #2  
Old October 23rd, 2003, 05:14 AM
Katherine Coombs
external usenet poster
 
Posts: n/a
Default Referencing the Seconday Y axis scale values in code

Hi Ken,

I have absolutely no idea when it comes to coding but the following KB
article may point you in the right direction?

http://support.microsoft.com/default...b;en-us;213695

Cheers,
Katherine

"Ken Ramirez" wrote in message
...
Does anyone know how to Reference the Seconday Y axis
scale values in code? I am automating a spreadsheet that
uses a chart and i need to adjust these values at run
time. I'm using Visual Basic.

Thanks!



  #3  
Old October 23rd, 2003, 10:10 AM
Andy Pope
external usenet poster
 
Posts: n/a
Default Referencing the Seconday Y axis scale values in code

Hi Ken,

Code generated via macro recorder.

Sub Macro1()
' The Excel constants are
' xlValue = 2
' xlSecondary = 2
'
ActiveChart.Axes(xlValue, xlSecondary).Select
With ActiveChart.Axes(xlValue, xlSecondary)
.MinimumScale = 1
.MaximumScale = 4
.MinorUnitIsAuto = True
.MajorUnitIsAuto = True
.Crosses = xlAutomatic
.ReversePlotOrder = False
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
End Sub


Ken Ramirez wrote:

Does anyone know how to Reference the Seconday Y axis
scale values in code? I am automating a spreadsheet that
uses a chart and i need to adjust these values at run
time. I'm using Visual Basic.

Thanks!


--

Cheers
Andy

http://www.andypope.info

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:42 AM.


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