Set Xaxis based on Min and Mas of a range

MitzDriver

Board Regular
Joined
Aug 23, 2010
Messages
60
Tired myself but not that good a vba.

Would like to set the minimum and maximum value of the xaxis with the min & max value in a range name.

i.e.
Chart 4 Xaxis minimum value = the minimum value of a range named dbyear.
Chart 4 Xaxis maximum value = the maximum value of range named dbyear.

Sounds simple but just can't get it to work.

Thanks in advance. Any help would be greatly helpful.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
If you highlight the table involving the aformentioned X axis pertaining to the dbyear and click the Sort button in the "Data tab', the last button before the "My data has headers" checkbox is Options. Click Options. UnderOrientation you will see you have two radio buttons: "Sort from Top to Bottom" and "Sort from Left to Right".
Select that one and sort by the dbyear Row.
 
Upvote 0

Forum statistics

Threads
1,215,370
Messages
6,124,526
Members
449,169
Latest member
mm424

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