BrianExcel
Well-known Member
- Joined
- Apr 21, 2010
- Messages
- 975
The following code is successfully generating a chart from the table I have on the sheet...
In looking closer, however, the y axis (bottom) is numbering each value as 1, 2, 3 instead of incorporating the actual values in column 1 (the y axis).
WHat do I need to do to have my values represent the y axis instead of just the title?
VBA Code:
Range("Sum7EditsTable[[#All],[Venue]]").Select
ActiveWorkbook.Names.Add Name:="VenueColumn", RefersToR1C1:="=Sum7EditsTable[[#All],[Venue]]"
Range("Sum7EditsTable[[#All],[Percent Edit]]").Select
ActiveWorkbook.Names.Add Name:="PercentColumn", RefersToR1C1:="=Sum7EditsTable[[#All],[Percent Edit]]"
ActiveWorkbook.ActiveSheet.Shapes.AddChart(201, xlColumnClustered).Select
ActiveChart.ApplyChartTemplate ("C:\Users\brian.burdette\AppData\Roaming\Microsoft\Templates\Charts\OpsReviewHistogramTemplate.crtx")
In looking closer, however, the y axis (bottom) is numbering each value as 1, 2, 3 instead of incorporating the actual values in column 1 (the y axis).
WHat do I need to do to have my values represent the y axis instead of just the title?