Changing axes X and Y in a plot in VBA

renatoab

New Member
Joined
Jun 14, 2009
Messages
32
I'd like to change the axis X and Y (change to the inverse function).

The easiest way I thought is manipulating the ActiveChart.SeriesCollection properties
- get the formula of the series and change the string into them
- manipulate it changing X and Y values

but I don't know exactly how to do.

Because I have 4 properties: Formula, FormulaLocal, FormulaR1C1, FormulaR1C1Local.

Do I have to change both of them? It's not working.

I'd like to do this way, because the Sub I'm using to generate the charts gets the entire range with x and y values, and I want to change after that Sub, when it's everithing done.

Do I have any other option?

Thank you
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,214,786
Messages
6,121,546
Members
449,038
Latest member
Guest1337

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