Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2003, 02:47 PM
Authorized User
 
Join Date: Sep 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding a second value axis to chart..?

Hi,

I'm trying to add a second value axis to a clustered column chart (co.Chart). But when I try to refer to the secondary axis I get an error.

... stuff omitted ...

With co.Chart
    .SetSourceData Source:=chartRng, PlotBy:=xlColumns
    .ChartType = xlColumnClustered
    .HasTitle = True
    .HasAxis(xlCategory, xlPrimary) = True
    .HasAxis(xlCategory, xlSecondary) = False
    .HasAxis(xlValue, xlPrimary) = True
    .HasAxis(xlValue, xlSecondary) = True
End With

With co.Chart.Axes(xlValue, xlSecondary)
    .HasTitle = True
    With .AxisTitle
        .Caption = "Denials"
        .Font.Size = 6
        .Orientation = xlUpward
    End With
End With

Can anyone straighten me out?

Thank you,

Robert Stober







Similar Threads
Thread Thread Starter Forum Replies Last Post
[VB2005]adding second y-axis to chart bellaelysium VB How-To 2 June 17th, 2008 01:16 AM
Coloring the chart plot area based on x-axis scale simranjeev Reporting Services 1 October 25th, 2007 02:50 PM
Chart Axis label Colour dmunro Reporting Services 1 September 28th, 2006 03:30 PM
Problem in formating Y axis of Chart mayuri Crystal Reports 0 December 26th, 2005 08:15 AM
Using Customized chart for Pivot Chart kliu9 Excel VBA 3 October 13th, 2004 09:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.