VBA for chart automation: 2 axes

amateur_excel

New Member
Joined
Jul 9, 2011
Messages
1
I am using excel 2003, and have a chart with two axes; the secondary axes does not have the zero point in line with the zero point on the primary axis. I need both of the following:

1. Both axes must have zero points in line with each other
2. I need different scales on both of the axes

All of this needs to be automated through a macro.

I've been able to get a macro working to set each axis' zero point to the same level, but then I cannot find a way to automate scaling, while keeping that zero point the same.

Any help is much appreciated!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
My way of trying to do this would be to do the complete action manually and record it with the macro recorder. Afterwards, post that code here and we can help clean it up so it does what you want...
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

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