Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Line and bar charts with secondary axis
Resolved · Medium Priority · Version 2003
Katy has attended:
Excel VBA Advanced course
In VB what code do I need to create a chart with a secondary axis? Once created how then can I change the chart type for the data on the primary axis to a bar chart and the data on the secondary axis to a line chart?
Hi Katy
Thankyou for your question
After some experimenting i have found the following code snippet which selects a series in a chart and then plots it against a secondary axis
ActiveChart.SeriesCollection(5).Select
ActiveChart.SeriesCollection(5).AxisGroup = 2
Wed 28 Jan 2009: Automatically marked as resolved.
|
Excel tip:Excel 2010 Shortcuts - Start and End of the WorksheetDid you know you can quickly move to either the beginning or the end of an Excel Worksheet using just a couple of keys on the keyboard? |
We'll call during UK business hours
Server loaded in 0.07 secs.