Bar chart reversing order of vertical (category) axis labels

Mauritz

Board Regular
Joined
Dec 15, 2006
Messages
53
I am using Office 2010 and Windows XP

For some reason the order of the items in the two column, multi row table I use for the bar chart gets reversed in the bar chart itself - item 1 in the table is the last item in the bar chart. I thought I was clever to merely reverse the order in my table and then the bar chart will reflect correctly, and this was fine until I started using VBA to change the colour of individual bars ie SeriesCollection(1).Points(x) where "x" is manipulated in the VBA code. The VBA uses the order of the table from top to bottom, whereas the actual bar chart reads from bottom to top, creating a mismatch so to speak if I use loops, etc to pass info from the table to the graph.

Is there a quick and easy way to overcome this?

Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top