Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've search and tried everything I can think of to turn on the secondary
axis. I've even recorded a macro to see what Excel does but no luck. Set c = Charts.Add With c .HasAxis(xlValue, xlSecondary) = True .Axes(xlValue, xlSecondary).CategoryType = xlAutomatic End With I get "Method 'Axes' of objecty '_Chart' failed". What am I doing wrong? *** Sent via Developersdex http://www.developersdex.com *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry folks. I figured it out.
I guess you can't have a secondary axis until you have one or maybe multiple series in your chart. I moved the code down after the series were created and voila it works. *** Sent via Developersdex http://www.developersdex.com *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need at least two series, one for the primary axis, the other for the
secondary. - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "Edward Ulle" wrote in message ... Sorry folks. I figured it out. I guess you can't have a secondary axis until you have one or maybe multiple series in your chart. I moved the code down after the series were created and voila it works. *** Sent via Developersdex http://www.developersdex.com *** |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to make Primary axis and Secondary X-axis have the same scale | Excel Discussion (Misc queries) | |||
How to place a secondary y axis bar in a bar chart next to two primary y axis bars? | Excel Discussion (Misc queries) | |||
How to place a secondary y axis bar in a bar chart next to two primary y axis bars? | Charts and Charting in Excel | |||
Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis | Charts and Charting in Excel | |||
Secondary Axis Annual Units sold on 1 Y Axis - Dollar Volume on another | Charts and Charting in Excel |